fida/pilot
最新稳定版本:v1.0.3
Composer 安装命令:
composer require fida/pilot
包简介
Laravel CRUD Generator package
关键字:
README 文档
README
Laravel CRUD Generator (Pilot) is a simple Laravel package that helps developers quickly configure an admin panel and generate a ready-to-use CRUD system.
This package installs via Composer and provides two Artisan commands that automatically configure an admin layout and generate a full CRUD module with AJAX functionality.
Installation
First create a new Laravel project:
laravel new my-project
Move into the project directory:
cd my-project
Install the package via Composer:
composer require fida/laravel-crud-generator
Available Commands
After installing the package, two Artisan commands will be available:
php artisan pilot:config
php artisan pilot:crud
AdminLTE Configuration
Run the following command:
php artisan pilot:config
This command configures AdminLTE v4 inside the Laravel project and creates the following files:
resources/views/layouts/app.blade.php
resources/views/layouts/partials/head.blade.php
resources/views/layouts/partials/header.blade.php
resources/views/layouts/partials/sidebar.blade.php
resources/views/layouts/partials/script.blade.php
resources/views/layouts/partials/footer.blade.php
public/assets/js/general.js
After these files are created, AdminLTE v4 will be fully configured and ready to use.
CRUD Generator
Run the CRUD generation command:
php artisan pilot:crud ModelName --columns="table_column_name:column_type:validation"
Separate the columns using commas as delimiters.
php artisan pilot:crud Product --columns="name:string:required|max:10,price:decimal:required|min:0,qty:integer:nullable"
This command generates the following files:
app/Http/Controllers/ProductController.php
app/Http/Requests/ProductRequest.php
app/Models/Product.php
database/migrations/2026_03_15_183116_create_products_table.php
public/assets/js/product.js
resources/views/pages/product/index.blade.php
resources/views/pages/product/create.blade.php
resources/views/pages/product/edit.blade.php
resources/views/pages/product/table.blade.php
It will also automatically create a products route inside the web.php file.
Example:
Route::resource('products', ProductController::class);
Database Migration
Run the migration command:
php artisan migrate
This will create the products table in your database.
Run Laravel Server
Start the Laravel development server:
php artisan serve
Now open your browser and go to:
http://localhost:8000/products
Your CRUD system is now fully functional.
Customizing the CRUD
You can add more columns to your table.
Step 1 — Update Migration
Add your required columns in the migration file.
Step 2 — Update Create Form
Add inputs inside:
resources/views/pages/create.blade.php
Step 3 — Frontend Validation
public/assets/js/product.js
Example validation:
$('#create-product-form').validate({ rules: { product: { required: true }, // more fields }, submitHandler: (form) => { } });
Step 4 — Backend Validation
Add validation rules inside:
app/Http/Requests/ProductRequest.php
Example validation:
public function rules(): array
{
return [
'product' => 'required|string|max:255',
];
}
Editing Records
To support editing functionality, update:
resources/views/pages/product/edit.blade.php
Add inputs and validation rules according to your requirements.
AJAX Based CRUD
The generated CRUD system works using AJAX requests, which provides:
- Faster interaction
- No page reload
- Better user experience
Template Flexibility
Although this package configures AdminLTE v4, you can replace it with any other admin template based on your project needs.
License
This package is open-source and available under the MIT License.
fida/pilot 适用场景与选型建议
fida/pilot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 15, 最近一次更新时间为 2026 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「generator」 「crud」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fida/pilot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fida/pilot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fida/pilot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Gii Generator for double model generation
A PSR-7 compatible library for making CRUD API endpoints
Admin panel generator for Laravel 8 and based on Vuetify Admin, a separate SPA admin framework running on top of REST APIs.
Collection of tools to use the full power of the Enyalius framework
Laravel Admin CRUD Generator
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-30