pemba / crud
create initial stage crud for easy setup
v1.0.0
2021-06-21 11:36 UTC
This package is auto-updated.
Last update: 2025-05-29 01:55:58 UTC
README
Install
composer require pemba/crud
Enable the package (Optional)
This package implements Laravel auto-discovery feature. After you install it, the package provider and facade are added automatically for laravel >= 5.5.
Configuration
After installation, you have to publish config file.
php artisan vendor:publish --tag=crud-config
Usage
To generate module enter following command
php artisan create:module moduleName --migration //--migration is optional
Above command create following files/folders
1.Http/Controllers
ModuleNameController.php
2.Http/Requests
ModuleNameRequest.php
3.Models
ModuleName.php
4.Database/migrations
5.Database/seeders
6.Routes
web.php
7.Views
index.blade.php
create.blade.php
edit.blade.php
form.blade.php
8.Policy
ModuleNamePolicy.php
9.Providers
ModuleNameServiceProvider.php
Other commands
with php artisan
create:model ModelName --migration moduleName //--migration is optional
create:controller ControllerName moduleName
create:migration migration_name table_name moduleName