coolhax / bootstrap-laravel-crud-generator
Laravel bootstrap 5 Crud Generator based on https://github.com/awais-vteams/laravel-crud-generator
Requires
- laravel/framework: ^9.0|^10.0
- laravelcollective/html: ^6.0
README
This Laravel Generator package provides and generate Controller, Model (with eloquent relations) and Views in Bootstrap for your development of your applications with single command.
This packege based on - (https://github.com/awais-vteams/laravel-crud-generator)
What Is New
-
Relationship with select in form and auto Relationship data pass in view
-
Select dropDown in form
-
Search Filter added
-
$serchable Property in Model
-
Bootstrap new Design col-md-6
-
New Feature Auto Route
-
Will create Model with Eloquent relations
-
Will create Controller with all resources
-
Will create views in Bootstrap
Requirements
Laravel >= 9.0
PHP >= 8.1
Bootstrap >= 5.0.0
Start Up
composer create-project laravel/laravel project-name
cd project-name
composer require laravel/ui
php artisan ui bootstrap --auth
npm install
npm run build
Installation
1 - Install
composer require coolhax/bootstrap-laravel-crud-generator --dev
2- Publish the default package's config
php artisan vendor:publish --tag=crud
Usage
php artisan make:crud {table_name}
php artisan make:crud banks
Add a route in web.php
- Now auto Route Feature Not Needed
Route::resource('banks', App\Http\Controlles\BankController:class);
Route name in plural slug case.
Options
- Custom Route
php artisan make:crud {table_name} --route={route_name}
Example
Author
Rohit Kumar // Email Me