1 | <?php |
||
23 | abstract class AbstractController extends Controller |
||
24 | { |
||
25 | use AuthorizesRequests, DispatchesJobs, GetsMiddleware; |
||
26 | |||
27 | /** |
||
28 | * Resource Ability Map. |
||
29 | * |
||
30 | * Array of resource ability map. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $resourceAbilityMap = []; |
||
35 | |||
36 | /** |
||
37 | * Whitelisted methods. |
||
38 | * |
||
39 | * Array of whitelisted methods which do not need to go through middleware. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $middlewareWhitelist = []; |
||
44 | |||
45 | /** |
||
46 | * The password broker. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $broker; |
||
51 | |||
52 | /** |
||
53 | * Get the broker to be used. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function getBroker() |
||
61 | |||
62 | /** |
||
63 | * Get the map of resource methods to ability names. |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | protected function resourceAbilityMap() |
||
80 | } |
||
81 |