1 | <?php |
||
7 | class Notification extends Eloquent\Model |
||
8 | { |
||
9 | /** |
||
10 | * The attributes that are not mass assignable. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $guarded = []; |
||
15 | |||
16 | /** |
||
17 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
18 | */ |
||
19 | public function notifiable() |
||
23 | |||
24 | /** |
||
25 | * @param $query |
||
26 | * |
||
27 | * @return Eloquent\Builder |
||
28 | */ |
||
29 | public function scopePending($query) |
||
33 | |||
34 | /** |
||
35 | * @param $query |
||
36 | * |
||
37 | * @return Eloquent\Builder |
||
38 | */ |
||
39 | public function scopeDismissed($query) |
||
43 | |||
44 | /** |
||
45 | * Dismiss the notification. |
||
46 | * @return bool|int |
||
47 | */ |
||
48 | public function dismiss() |
||
52 | } |
||
53 |