Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ShortcutObserver | |
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\Shortcut; |
6 | use App\Jobs\ProcessShortcutAsyncJob; |
7 | |
8 | class ShortcutObserver |
9 | { |
10 | public function created(Shortcut $shortcut): void |
11 | { |
12 | ProcessShortcutAsyncJob::dispatch($shortcut, 'created'); |
13 | } |
14 | } |