| @@ 31-38 (lines=8) @@ | ||
| 28 | * |
|
| 29 | * @return void |
|
| 30 | */ |
|
| 31 | public function fire(AdminInterface $admin) |
|
| 32 | { |
|
| 33 | foreach ($admin->getMissedSections() as $model => $section) { |
|
| 34 | $this->callSilent('sleepingowl:section:make', ['name' => $section, 'model' => $model]); |
|
| 35 | } |
|
| 36 | ||
| 37 | $this->info('Sections generated successfully!'); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * Execute the console command. |
|
| @@ 47-54 (lines=8) @@ | ||
| 44 | * |
|
| 45 | * @return void |
|
| 46 | */ |
|
| 47 | public function handle(AdminInterface $admin) |
|
| 48 | { |
|
| 49 | foreach ($admin->getMissedSections() as $model => $section) { |
|
| 50 | $this->callSilent('sleepingowl:section:make', ['name' => $section, 'model' => $model]); |
|
| 51 | } |
|
| 52 | ||
| 53 | $this->info('Sections generated successfully!'); |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||