Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ShortcutCategoryObserver | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| created | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Observers; |
| 4 | |
| 5 | use App\Http\Models\ShortcutCategory; |
| 6 | use App\Jobs\ProcessShortcutCategoryAsyncJob; |
| 7 | |
| 8 | class ShortcutCategoryObserver |
| 9 | { |
| 10 | public function created(ShortcutCategory $shortcutCategory): void |
| 11 | { |
| 12 | ProcessShortcutCategoryAsyncJob::dispatch($shortcutCategory, 'created'); |
| 13 | } |
| 14 | } |