响应式条目网格视图,使用 Bootstrap、Laravel Blade 和自定义指令实现
laravel-crud-starter — Laravel 后台模板
作者 zackproser
Laravel CRUD Starter 是一个基于 Laravel 5.4、Vue 2.1.10 和 Bootstrap 的全栈示例应用,提供响应式条目网格展示和受 HTTP Basic Auth 保护的管理员 CRUD 管理界面。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
管理员专用 CRUD 管理界面,通过 Laravel auth.basic 中间件以 HTTP Basic Auth 保护
管理员单页应用基于 Vue.js,支持双向数据绑定、删除确认流程和表单验证错误展示
暴露 items 资源的 JSON REST API,使用 Laravel 资源控制器处理 CRUD HTTP 动词
包含数据库迁移与 Items、Admin 种子数据,以及检查主要路由状态码的基础单元测试
提供可配置的启动页,支持设置页眉、联系信息,并可替换全宽预告图片
模板详细介绍
该项目是一个 Laravel CRUD 起步模板,README 说明其可用于构建需要公开展示、私下管理实体的应用或网站,也可作为学习 Laravel 全栈开发的参考。应用包含面向访客的响应式条目网格视图,以及仅限管理员访问的后台管理控制台,管理员可通过内部 items REST API 执行 CRUD 操作。技术栈为 Laravel 5.4、Vue 2.1.10 和 Bootstrap CSS & JS。管理员路由通过 Laravel 的 auth.basic 中间件以 HTTP Basic Auth 保护。README 提供了本地构建运行步骤、Laravel Forge 部署脚本说明,以及管理员默认凭据,并提醒在部署到类生产环境前修改 AdminsTableSeeder.php 中的密码。项目包含数据库迁移与种子数据、基础单元测试,以及自定义 Blade 指令和 Vue 过滤器等可复用设计。README 未说明该模板的生产就绪程度、性能表现或除 Laravel Forge 之外的其他部署方式。
适合你的项目吗?
适用场景
- 构建需要公开查看条目、由管理员私下维护数据的网站或应用
- 作为学习 Laravel 全栈 CRUD 应用结构与实现方式的参考项目
- 在 Laravel 项目中快速搭建带 HTTP Basic Auth 保护的后台管理界面
- 通过 Laravel Forge 部署到 VPS 并使用项目根目录的 laravel-forge.sh 作为部署脚本
适合人群
- 希望以 Laravel 为基础快速启动 CRUD 类项目的开发者
- 正在学习 Laravel、Vue.js 和 Bootstrap 组合全栈开发的个人
- 需要公开展示条目并提供管理员后台管理功能的小型项目原型
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
本地运行需依次执行 composer install、npm install、npm run watch、php artisan migrate:install、php artisan migrate --seed、php artisan serve,然后访问 http://localhost:8000
- 2
管理员默认凭据为 [email protected] / n6lbx6qoc%FWSIBb9@ox,README 要求在部署到类生产环境前修改 AdminsTableSeeder.php 中的密码
- 3
管理员密码通过 Laravel Hash facade 以 Bcrypt 哈希后存入数据库
- 4
部署到 Laravel Forge 时,可使用项目根目录的 laravel-forge.sh 作为站点部署脚本
- 5
运行单元测试需在项目根目录执行 phpunit
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 部署到类生产环境前,必须修改 AdminsTableSeeder.php 中的默认管理员密码,改为长、复杂且不公开暴露的密码。
- 若选择通过 Laravel Forge 部署,可使用项目根目录的 laravel-forge.sh 脚本作为 Forge 面板中的站点部署脚本;Laravel Forge 为外部付费服务。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
**Please change this password to something long, complex and unique, that is not publicly exposed, in the AdminsTableSeeder.php file before deploying this app to anything resembling a production environment.**
README 原文
https://github.com/zackproser/laravel-crud-starter/blob/github/LICENSEhttps://github.com/zackproser/laravel-crud-starter/blob/github/readme.mdIf you choose to deploy this application via [Laravel Forge](https://forge.laravel.com), there's a handy laravel-forge.sh script included in the project root that you can use as your site deployment script within the Forge dashboard.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-11。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 73 / 100
- 技术栈
- Laravel
- 网站类型
- 后台 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2017-04-04
- 截图检查日期
- 2026-10-11
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Laravel。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261017 · 2026-10-16
查看当时使用的来源资料
SHA-256: 88ef86dcabc0a5227f932644d915c332feb73fe12c69bb35d704905d51838c6f
2026-10-11T16:13:46.812Z
来源文件 / 仓库# Laravel CRUD Starter App Extend this project as needed to build your own full stack web application or site. Or, use it as a reference if you're learning to build web apps in general or Laravel projects in particular. ## Demo instance For convenience, this application has also been deployed via Laravel Forge to a VPS. [Laravel CRUD Starter Demo Instance](https://cosmicwitness.com); ## Features ### Configurable splash screen Greet your users, add login or sign-up buttons, sales pitches, etc here. Already configured to use parameters you set for header and contact info, and features a full width splashscreen style teaser image you could easily swap out with whatever you want.  ### Responsive grid view for items Leveraging bootstrap, Laravel Blade and a custom directive, you've already got a fully responsive grid view to start with.  ### Admin-only CRUD Manager View Easily configure the admin account(s) that should have access to the backend manager application. The admin app is protected by basic auth out of the box.  ### Intuitive interface The sleek and minimalist interface gets out of your way, but is still responsive and has a pleasant feel to it thanks to: * Two way data binding thanks to Vue.js * Subtle animations on modified, created, deleted items in the table view * Robust error and success messaging framework that can be easily extended  ## Overview CRUD Starter is a full-stack application built leveraging: * Laravel 5.4 * Vue 2.1.10 * Bootstrap CSS & JS CRUD Starter allows visitors to view items in a responsive grid presentation. The application allows an admin user to access a special management console for performing CRUD operations on items via the internal items REST API. This project is a good starting point if you're building an application or website that needs to publicly display privately managed entities, or if you're just trying to get a sense of what a CRUD app might look like in Laravel. Since the admin route exposes sensitive information and capabilites, it is locked down via HTTP Basic Auth, leveraging Laravel's internal auth.basic middleware. You can access the admin view using the special admin credentials: ``` [email protected] / n6lbx6qoc%FWSIBb9@ox ``` **Please change this password to something long, complex and unique, that is not publicly exposed, in the AdminsTableSeeder.php file before deploying this app to anything resembling a production environment.** This long and complex password is hashed via Laravel's Hash facade, which leverages Bcrypt under the hood, before it is stored in the database via the AdminsTableSeeder. This is done to ensure that, even if a security breach grants an attacker access to the database, user passwords are stored as non-reversible hashes. ## Design Considerations I like to include detailed comments throughout the code that I write, such that another developer who is looking at my code can easily get up to speed, understand my thinking, and reference PHP DocBlocks in order to quickly grok the arity of any methods or functions I've created. For easy extensibility, the CRUD Starter app exposes a JSON API allowing consumers to interact with the items resource. This will allow any future features to leverage a uniform API. The Admin view single page javascript application leverages Vue.js. It can be easily dropped into future views via the custom element it defines, like so: ``` <adminclient></adminclient> ``` ## Getting Started Build and run the application locally: ``` $ composer install --no-interaction --prefer-dist --optimize-autoloader $ npm install $ npm run watch & $ php artisan migrate:install $ php artisan migrate --seed $ php artisan serve $ open http://localhost:8000 ``` ## Deploying to [Laravel Forge](https://forge.laravel.com) If you choose to deploy this application via [Laravel Forge](https://forge.laravel.com), there's a handy laravel-forge.sh script included in the project root that you can use as your site deployment script within the Forge dashboard. While this script is designed to be run via the Laravel Forge UI, it could also form the basis of a more generic build process. ## App Features At a Glance ### Responsive Grid View To keep the grid view clean and easily legible, I made use of Laravel's collection chunk method to neatly group items into chunks of 3. This great simplifies the iterative logic in the grid blade. For ease of extensibility, I created a root "layout" blade, which other page-level blades can extend. This allows for the easy definition of common scripts, stylesheets, HTML meta info, etc in a common place and reduces the likelihood of copy pasta. ### Blade Extension It's often a requirement of grid displays to signal the 'type' of an item or entity with a special badge. Since this is the kind of thing I'd expect to be reused often, I created a custom Blade directive for it. This will allow anyone on the team to easily include a uniform party icon as needed using: ``` {{-- Reusable item icon generator --}} {{-- @See: AppServiceProvider.php --}} @itembadge($item->type) ``` ### Resource Controller In order to quickly build out a JSON API that exposes the item resource, I made use of Laravel's resource controller feature to generate the ItemController, which automagically handles binding between common CRUD HTTP verbs and associated controller methods. With this done, it was easy to build a frontend client that orchestrates AJAX calls in order to interact with the items resource. ### Validation contstraints Even though this sample app only receives input from an admin-centric view, the usual rules of never trusting client input remain in play. Therefore, I leveraged Laravel's validation rules in the ItemController to ensure that requests are well-formed and valid before running any database operations. ### Admin client: Confirmations and Validation The admin client leverages Vue.js to enforce some structure to the frontend components. To prevent accidental data loss, I created a delete confirmation workflow which runs to ensure the admin is deleting the intended item. I also handle validation errors from the backend API, clearly displaying to the user which fields need updates to pass validation. I defined two custom Vue.js filters in app.js, to more legibly format dates and clean error messages of special characters, that could be used anywhere they are needed. ### Database Migrations & Seeders To ensure that everyone is looking at the same test data, I leveraged Laravel's migration functionality to describe database operations in migrations that can be run on fresh installations. In addition, I created an Items and Admin seeder, then referenced both in the DatabaseSeeder class, so that both seeders are run by default. Leveraging migrations and seeders greatly improves the portability of an app and facilitates automation of the build process. ### Unit Tests Basic unit tests have been included, checking that the main application routes return the expected status code and stubbing out interactions with the backend REST API. To run the unit tests for this application, invoke phpunit from the project root: ``` $ phpunit ```
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

sage
WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and block editor support
Laravel · 启动器

wave
Wave - The Software as a Service Starter Kit, designed to help you build the SAAS of your dreams 🚀 💰
Laravel · SaaS

coreui-free-laravel-admin-template
CoreUI Free Laravel Bootstrap Admin Template
Laravel · 后台

sneat-bootstrap-html-laravel-admin-template-free
Most Powerful & Comprehensive Free Bootstrap 5 HTML Laravel Admin Dashboard Template built for developers!
Laravel · 后台

filament-starter
A beautiful starting point for your next TALL stack project using Filament. ⚡
Laravel · 启动器

electrik
Laravel SaaS starter kit: auth, teams, Stripe billing, and Slate 3 — Composer package for Laravel 12
Laravel · SaaS
