Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ShortcutObserver
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 created
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Observers;
4
5use App\Http\Models\Shortcut;
6use App\Jobs\ProcessShortcutAsyncJob;
7
8class ShortcutObserver
9{
10    public function created(Shortcut $shortcut): void
11    {
12        ProcessShortcutAsyncJob::dispatch($shortcut, 'created');
13    }
14}