ramzyvirani/laravel-boilerplate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Maintainability Test Coverage

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:

Some Useful Scripts

Want to use Searchable Dropdown?

  • Add class select2 to 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 ramzyvirani/laravel-boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 76
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-30