ahmedmaher / crud
test package making
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.2|^8.0
This package is auto-updated.
Last update: 2024-04-22 14:07:56 UTC
README
1 - Install
composer require ahmedmaher/crud
2 - Add the service provider to the providers array in the config/app.php config file as follows:
'providers' => [
...
ahmedmaher\crud\CrudServiceProvider::class,
]
3- Publish the default package
php artisan vendor:publish --provider="ahmedmaher\crud\CrudServiceProvider"
Usage
to customize views(index, create, edit and form) edit in App/CrudGenerate/CrudViews
to customize mdoel(set or edit default properties or methods) edit in App/CrudGenerate/model.txt
to customize controller edit in App/CrudGenerate/controller.txt
and run this command
php artisan crud:generate {table} {model} {path}
example
php artisan crud:generate products Product Dashboard/folder