daydreamlab / jjaj
For Jordan, Jerry, Alex and Jackie
Requires
- daydreamlab/observer: dev-master
This package is auto-updated.
Last update: 2024-10-04 09:13:22 UTC
README
jjaj:mc
This command jjaj:mc means that it will generate Model(m) and Controller(c). The following directories and files will be generated:
-
Controller Path : app/Http/Controllers/API/{name}
-
Model Path: app/Models/{name}
-
Repository Path: app/Repositories/
-
Service Path: app/Services/
-
Request Path: app/Http/Requests/
-
Constant Path: app/constants/
php artisan jjaj:mc {name} {--admin} {--front} {--component=}
Example
php artisan jjaj:mc Category --admin --front --component=Cms
params:
-
name (required)
Model name. Plase don't use plural form(ex:
Users). -
--admin (optional)
This param will generate admin model.
-
--front (optional)
This param will generate front model.
-
--component= (optional)
If you want to write you own package, this will help you to generate corresponding files with correct namespace. File path will be in root/packages/{package_name}.
jjaj:clear
php artisan jjaj:clear
This command will run the following three commands:
php artisan config:clear
php artisan cache:clear
php artisan view:clear
jjaj:delete
This Command will help you to delete all files generated by jjaj:mc command.
jjaj:refresh
This command will run the following two commands:
php artisan migrate:refresh
php artisan passport:install
jjaj:test
This Command will help you to generate tesing files.
php artisan jjaj:test {name} {--unit} {--feature} {--type=} {--admin} {--front}
Example
php artisan jjaj:test --unit --type=service --admin --front
params:
-
name (required)
Model name. Plase don't use plural form(ex:
Users). -
--admin (optional)
This param will generate admin model test.
-
--front (optional)
This param will generate front model test.
-
--type= (optional)
There are three type you can choose!
- controller
- model
- repository
- service