kdion4891/laravel-ajax-crud
Composer 安装命令:
composer require kdion4891/laravel-ajax-crud
包简介
Build Laravel 6 CRUD apps in record time!
README 文档
README
Looking for more of an admin panel package?
Check out my latest package, Valiant:
https://github.com/kdion4891/valiant
A full featured Laravel 6 admin panel package!
Laravel AJAX CRUD
LAC is a Laravel 6 package designed to integrate beautifully while saving you tons of time. Get a complete CRUD interface done in minutes by adding a few lines of code to your models.
Features include:
- Full Laravel 6 auth & resource integration
- Unobtrusive implementation to keep you in control
- Field, action, & bulk action helper classes
- Scaffolding command to create files for you
- Intuitive, responsive UI design
- AJAX validation & responses
- Ease of use and customization
Links of interest:
Installation
Require the package:
composer require kdion4891/laravel-ajax-crud
Publish the nav view, CSS, & JS files:
php artisan vendor:publish --tag=install
Integrate the auth scaffolding:
php artisan lac:auth
Quick Start
Make scaffolding files for a new model (a Vehicle, for example):
php artisan lac:make Vehicle
Update the LacFields in the new Vehicle model class:
public function fields()
{
return [
LacField::make('ID')
->tableColumn()->tableSearchable()->tableOrder('desc'),
LacField::make('Brand')
->tableColumn()->tableSearchable()->tableSortable()
->input()->inputCreate()->inputEdit()
->rules(['required']),
LacField::make('Color')
->tableColumn()->tableSearchable()->tableSortable()
->inputSelect(['Red', 'Green', 'Blue'])->inputCreate()->inputEdit(),
LacField::make('Created At')
->tableColumn()->tableSearchable()->tableHidden(),
LacField::make('Updated At')
->detailsHidden(),
];
}
Update the new *_create_vehicles_table migration file with your field columns:
Schema::create('vehicles', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('brand');
$table->string('color')->nullable();
$table->timestamps();
});
Run the migration:
php artisan migrate
Log into your app with any auth User and click the Vehicles link in the navbar to view the CRUD.
kdion4891/laravel-ajax-crud 适用场景与选型建议
kdion4891/laravel-ajax-crud 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 164 次下载、GitHub Stars 达 71, 最近一次更新时间为 2019 年 12 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kdion4891/laravel-ajax-crud 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kdion4891/laravel-ajax-crud 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 164
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 71
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-14