1 | <?php |
||
2 | |||
3 | namespace Mrluke\Privileges\Events\Permission; |
||
4 | |||
5 | use Illuminate\Foundation\Events\Dispatchable; |
||
6 | use Illuminate\Queue\SerializesModels; |
||
7 | |||
8 | use Mrluke\Privileges\Models\Permission; |
||
9 | |||
10 | class Updated |
||
11 | { |
||
12 | use Dispatchable, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
13 | |||
14 | /** |
||
15 | * Authenticable that cause Event. |
||
16 | * |
||
17 | * @var \Illuminate\Foundation\Auth\User |
||
18 | */ |
||
19 | public $auth; |
||
20 | |||
21 | /** |
||
22 | * Instance of new model. |
||
23 | * |
||
24 | * @var \Mrluke\Privileges\Models\Permission |
||
25 | */ |
||
26 | public $model; |
||
27 | |||
28 | public function __construct(Permission $model) |
||
29 | { |
||
30 | $this->auth = auth()->user(); |
||
31 | $this->model = $model; |
||
32 | } |
||
33 | } |
||
34 |