1 | <?php |
||
9 | class TestimonyPolicy |
||
10 | { |
||
11 | use HandlesAuthorization; |
||
12 | |||
13 | private $adminRouteNames = [ |
||
14 | 'testimonies.toggle-approval', |
||
15 | 'testimonies.delete-image', |
||
16 | ]; |
||
17 | |||
18 | public function viewAny(Ministry $ministry) |
||
22 | |||
23 | /** |
||
24 | * Determine whether the ministry can view the testimony. |
||
25 | * |
||
26 | * @param \App\Models\Ministry $ministry |
||
27 | * @param \App\Testimony $testimony |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function view(Ministry $ministry, Testimony $testimony) |
||
34 | |||
35 | /** |
||
36 | * Determine whether the ministry can create testimonies. |
||
37 | * |
||
38 | * @param \App\Models\Ministry $ministry |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function create(Ministry $ministry) |
||
45 | |||
46 | /** |
||
47 | * Determine whether the ministry can update the testimony. |
||
48 | * |
||
49 | * @param \App\Models\Ministry $ministry |
||
50 | * @param \App\Testimony $testimony |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function update(Ministry $ministry, Testimony $testimony) |
||
64 | |||
65 | /** |
||
66 | * Determine whether the ministry can delete the testimony. |
||
67 | * |
||
68 | * @param \App\Models\Ministry $ministry |
||
69 | * @param \App\Testimony $testimony |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function delete(Ministry $ministry, Testimony $testimony) |
||
76 | } |
||
77 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.