steelants/laravel-boilerplate
Composer 安装命令:
composer require steelants/laravel-boilerplate
包简介
Everything you need to start your Laravel journey.
README 文档
README
Created by: SteelAnts s.r.o.
Preview
Upgrade Guide
Tag project
git checkout main git pull origin main git pull origin dev git tag 1.8.4 git push --tags git checkout dev
What's included
Functions
- User Management
- Job Management
- Cache Management
- Backup Manager
- Log Viewer
- Audit
- API Routes view page
- Menu builder
- From builder
- Datatable builder
Template
- Reponsive app template
- Light/dark theme
- Build on Bootstrap and Livewire
- Quill editor
Install
composer require steelants/laravel-boilerplate
composer install
#add Basic Controllers Routes and Features to APP namespace for customization
php artisan install:boilerplate
Import javascript and styles (includes bootstrap and font awesome)
// /resources/scss/app.scss @import "./boilerplate/boilerplate.scss"
// /resources/js/app.scss import './boilerplate/boilerplate.js';
Note
If you need customize any of included js/scss files, don't change files inside boilerplate folder. Instead create new root file boilerplate.scss/js by copying it from boilerplate folder. By changing paths of imported files you can make your custom verison or keep importing from boilerplate. When you update boilerplate package you will need to check changes only in root files boilerplate.scss/js and update your custom version accordingly.
Menu Builder
Single Level
Menu::make('main-menu', function ($menu) { $systemRoutes = [ 'general' => ['fas fa-eye', 'general.index'], ]; foreach ($systemRoutes as $title => $route_data) { $icon = $route_data[0]; $route = $route_data[1]; $menu->add($title, [ 'id' => strtolower($title), 'icon' => $icon, 'route' => $route, ]); } });
with sub Menu Builder
Multi Level
Menu::make('main-menu', function ($menu) { $mainItem = $menu->add('Home', [ 'id' => strtolower('Home'), 'icon' => 'fas fa-eye', 'route' => 'general.index', ]); $mainItem->add('Dashboard', [ 'id' => strtolower('Home-Dashboard'), 'icon' => 'fas fa-eye', 'route' => 'general.sub-index', ]); });
Alerts
types
success
error
warning
info
RELOAD type
Alert::add(type: 'info', text: 'Informační zpráva po redirektu', icon: '', mode: AlertModeType::RELOAD, persist: false);
INSTANT type
Alert::add(type: 'error', text: 'Error zpráva ve stejném requestu', icon: '', mode: AlertModeType::INSTANT, persist: false);
parametry
icon - využívá defaultní ikonu dle typu, pokud není nastavena persist - pokud je true, zůstává notifikace aktivní dokud ji neodklikne uživatel nebo neprovede redirect.
Commands
| Command | Description |
|---|---|
| install:boilerplate | Install or update boilerplate scaffolding into the project |
| make:crud | Scaffold a full CRUD resource (DataTable, Form, controller, routes, tests) |
| make:basic-tests | Generate basic route coverage tests |
| job:dispatch | Dispatch a job by class name |
Components
| Component | Tag | Description |
|---|---|---|
| Tab Group | <x-boilerplate::tab.group> |
Bootstrap tabs with Alpine.js state and cookie persistence |
| Breadcrumb | <x-boilerplate::breadcrumb> |
Bootstrap breadcrumb from associative array |
| Gantt | <x-boilerplate::gantt> |
Horizontal Gantt chart with day/week/month scale |
| Pie Graph | <x-boilerplate::pie-graph> |
Chart.js pie chart |
| Selectbox | <x-boilerplate::selectbox> |
Alpine.js select with tags mode and multi-select |
| Selectbox Ajax | <x-boilerplate::selectbox-ajax> |
Selectbox with server-side Livewire search |
| Searchbox | <x-boilerplate::searchbox> |
Client-side filtered dropdown search |
| Alert | alert()->success()->now() |
Snackbar notifications for Livewire and HTTP contexts |
Development
Contributors
Other Packages
Notes
steelants/laravel-boilerplate 适用场景与选型建议
steelants/laravel-boilerplate 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.58k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 10 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 steelants/laravel-boilerplate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 steelants/laravel-boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-19