Conditions | 4 |
Paths | 8 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function handle() |
||
41 | { |
||
42 | $name = $this->argument('name'); |
||
43 | |||
44 | CRUDGeneratorService::makeCRUD($name, $this); |
||
45 | |||
46 | if ($this->option('acl')) { |
||
47 | Artisan::call('make:permission '.$name.' --all'); |
||
48 | $this->info('ACL created ... ✅'); |
||
49 | } |
||
50 | |||
51 | if ($this->option('api')) { |
||
52 | Artisan::call('make:api '.$name); |
||
53 | $this->info('API resource files created ... ✅'); |
||
54 | } |
||
55 | |||
56 | if ($this->option('rest')) { |
||
57 | Artisan::call('make:api '.$name.' --rest'); |
||
58 | $this->info('RestAPI files created ... ✅'); |
||
59 | } |
||
60 | |||
61 | $this->info('CRUD made for model '.$name.' ... ✅'); |
||
62 | } |
||
64 |