ramzyvirani/laravel-boilerplate
Composer 安装命令:
composer create-project ramzyvirani/laravel-boilerplate
包简介
Laravel boilerplate. Basic boilerplate to create laravel projects with Admin Panel, Role Based Access Control, i18n support, Swagger Doc using InfyOm (Laravel CRUD Generator).
README 文档
README
Basic boilerplate to create laravel projects with Admin Panel, Role Based Access Control, i18n support, Swagger Doc using InfyOm (Laravel CRUD Generator).
PS: This boilerplate works on Database First Approach, After the installation, you should design your database through your preferred Database Administration tool then generate modules from the admin panel selecting your tables one by one.
Whats used?
- PHP 7.1
- Laravel 5.8
- InfyOm Laravel Generator
- AdminLTE Theme
- Swagger Generator from InfyOm
- DataTables
- Entrust (ACL)
- Repository Pattern
Libraries
Laravel 5.8
- laravel/framework: 5.8.*,
- laravel/tinker: ^1.0,
- laravelcollective/html: ^5.8.0,
- fideloper/proxy: ^4.0,
- doctrine/dbal: ~2.3
Image Processeing
- intervention/image: ^2.4,
Swagger Doc
- appointer/swaggervel: ^2.3,
JWT
- tymon/jwt-auth: 1.*,
Breadcrumbs (Admin Panel)
- davejamesmiller/laravel-breadcrumbs: ^5.0,
i18n
- dimsav/laravel-translatable: ^9.0,
Cascade Soft Deletes
- iatstuti/laravel-cascade-soft-deletes: ^1.4.0,
InfyOm (with AdminLTE Template and DataTables)
- infyomlabs/adminlte-templates: 5.8.x-dev,
- infyomlabs/laravel-generator: 5.8.x-dev,
- infyomlabs/swagger-generator: dev-master,
- yajra/laravel-datatables-buttons: 4.*,
- yajra/laravel-datatables-oracle: ~9.0,
Push Notification
- edujugon/push-notification: ^2.2,
RBAC (ACL)
- zizaco/entrust: 1.9.1
Installation
- Download the zip of this repository or use
composer create-project ramzyvirani/laravel-boilerplate - Upload it on Web Server
- Install & Update libraries with
composer update - Set your Database credentials in
.env. - Run Migration and Seeder
php artisan migrate:refresh --seed
Boilerplate will create tables and insert basic modules, menus, users, roles, permissions in the database.
How To?
Step 1
- Make Schema Architecture in your preferred database administration tool.
- Click on Module
- Click Create
- Select the table you want to create a module for
- Enter Module Name (Only alphanumeric characters and spaces are allowed for module names. Using spaces will Generate your classes with CamelCase and will add hyphens in your routes and permission names)
- Select the Icon for this module
- Next
Step 2
- Add / Remove Columns you want in the Module Index View (DataTable)
Step 3
- Add / Remove fields for forms. {Create / Edit}
- Type -> HTML input type.
- Validation -> laravel validations.
- Width -> Bootstrap Columns.
- Select Yes if you want to generate migrations for this module.
Check Generated Files:
- DataTable,
- Admin Controller,
- Api Controller,
- Request,
- Model,
- Repositories,
- Migrations,
- Views,
- Tests,
- Tests Traits,
- routes/api.php,
- routes/admin.php,
- public/modules_seeder.csv,
- public/menus_seeder.csv,
- public/permissions_seeder.csv,
- public/permission_role_seeder.csv,
Admin Credentials:
- Super admin (development admin)
- 'email' => "superadmin@boilerplate.com"
- 'password' => 'superadmin123'
- Admin
- 'email' => "admin@boilerplate.com"
- 'password' => 'admin123'
Some Useful Scripts
Want to use Searchable Dropdown?
- Add class
select2to your dropdown.
Ask SW confirmation before delete?
- Call function
confirmDelete()on Onclick event.
Want toggle switch instead of checkbox?
- Add attribute
'data-toggle'=>'toggle'on html checkbox.
Want to add add fields from another related table in datatables?
- please see DataTables/Admin/UserDataTable.php
Want to add Translatable module?
- please see Page Module For Reference.
Make dependent dropdowns
- Use class="select2" and data-url="route_to_fetch_data" data-depends="parent_name"
Create Custom Validation Rules
- /app/Http/Requests/Api/BaseApiRequest::validator has a sample custom validation rule. Uncomment and modify that code to create and use your custom validation rule for any API request.
PS: Download the zip of this project to initialize git for your project repository
Build Something Amazing!!
ramzyvirani/laravel-boilerplate 适用场景与选型建议
ramzyvirani/laravel-boilerplate 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 76 次下载、GitHub Stars 达 16, 最近一次更新时间为 2019 年 12 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「i18n」 「boilerplate」 「laravel」 「scaffolding」 「admin-panel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ramzyvirani/laravel-boilerplate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ramzyvirani/laravel-boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ramzyvirani/laravel-boilerplate 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Easy to use i18n translation PHP class for multi-language websites
A custom URL rule class for Yii 2 which allows to create translated URL rules
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Anax htmlform module.
Bureaux A Partager Edit - Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
统计信息
- 总下载量: 76
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-30