For repository patten design under Laravel framework
- can install via
composer
- can create update delete search all ,where like ,find by id , filter language
- can reponse json format [not code API standard]
- can generate request file
- Create{namespace}Request
- Update{namespace}Request
- Delete{namespace}Request
- Get{namespace}Request
- can generate model and sync table automatically
- can generate controller
- can generate route and mapping auto to controller
- can generate repository extended on APIBaseRepository
- generate automatically interfaces of repository
- can generate migration file
composer require samark/lumpineevill
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Lumpineevill\ServiceProvider\LumpineevillServiceProvider::class
$ php artisan samark:genfile
$ php artisan samark:genfront
append .env
file
$ php samark:copy-env
for copy migration file to dastabase/migrations/
$ php samark:copy-migration
$ php artisan vendor:publish --provider="Lumpineevill\ServiceProvider\LumpineevillServiceProvider"