musabbir035 / crud
Generates code for simple CRUD operation.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/musabbir035/crud
Requires
- php: ^7.4|^8.1
- illuminate/support: ^8|^9|^10
README
This package generates code for simple CRUD operations.
Installation
Require via composer
composer require --dev musabbir035/crud
Usage
Generate code by using the following command
php artisan crud:generate Book
This command generates the model class, controller, validation and migration files. It also appends the routes for the CRUD operations of the created model in the 'routes/web.php' file & runs database migrations.
It also accepts a --fields= option for the fields of the model.
php artisan crud:generate Book --fields="title,author_name"
You will need to create a layout file in resources/views/layouts/main.blade.php. Inside the body tag add @yield('content'). Bootstrap 5 is needed for styling.