1 | <?php |
||
13 | class AdminController extends FlareController |
||
14 | { |
||
15 | use AuthenticatesAndResetsPasswords, DispatchesJobs; |
||
16 | |||
17 | /** |
||
18 | * Auth. |
||
19 | * |
||
20 | * @var Guard |
||
21 | */ |
||
22 | protected $auth; |
||
23 | |||
24 | /** |
||
25 | * __construct. |
||
26 | * |
||
27 | * @param Guard $auth |
||
28 | * @param AdminManager $adminManager |
||
29 | */ |
||
30 | public function __construct(Guard $auth, AdminManager $adminManager) |
||
36 | |||
37 | /** |
||
38 | * Show the Dashboard. |
||
39 | * |
||
40 | * @return \Illuminate\Http\Response |
||
41 | */ |
||
42 | public function getDashboard() |
||
52 | |||
53 | /** |
||
54 | * Show the login form. |
||
55 | * |
||
56 | * @return \Illuminate\Http\Response |
||
57 | */ |
||
58 | public function getLogin() |
||
62 | |||
63 | /** |
||
64 | * Processes the login form. |
||
65 | * |
||
66 | * @param Request $request |
||
67 | * |
||
68 | * @return \Illuminate\Http\RedirectResponse |
||
69 | */ |
||
70 | public function postLogin(Request $request) |
||
86 | |||
87 | /** |
||
88 | * Log the user. |
||
89 | * |
||
90 | * @return \Illuminate\Http\RedirectReponse |
||
91 | */ |
||
92 | public function getLogout() |
||
98 | |||
99 | /** |
||
100 | * Display the form to request a password reset link. |
||
101 | * |
||
102 | * @return \Illuminate\Http\Response |
||
103 | */ |
||
104 | public function getReset() |
||
108 | |||
109 | /** |
||
110 | * Performs the login redirect action. |
||
111 | * |
||
112 | * If the authenticated user has admin permissions |
||
113 | * then they will be redirected into the admin |
||
114 | * panel.If they do no, they will be sent |
||
115 | * to the homepage of the website. |
||
116 | * |
||
117 | * @return \Illuminate\Http\RedirectReponse |
||
118 | */ |
||
119 | protected function loginRedirect() |
||
127 | |||
128 | /** |
||
129 | * Method is called when the appropriate controller |
||
130 | * method is unable to be found or called. |
||
131 | * |
||
132 | * @param array $parameters |
||
133 | * |
||
134 | * @return \Illuminate\Http\Response |
||
135 | */ |
||
136 | public function missingMethod($parameters = array()) |
||
140 | } |
||
141 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: