2017-09-03 133 views
0

我正在將在Laravel 5.1上構建的CMS升級到Laravel 5.5。我收到以下錯誤。Laravel BadMethodCallException方法getLogin不存在

BadMethodCallException方法[getLogin]不存在。在 Controller.php這樣(68行) 供應商\ laravel \框架的\ src \照亮\路由\ Controller.php這樣

這裏是我的路線。任何想法是什麼問題?

Http\routes.php 
Route::get('core/admin/login', 'Auth\[email protected]'); 
Route::post('core/admin/login', 'Auth\[email protected]'); 
Route::get('core/admin/logout', 'Auth\[email protected]'); 
+0

在你的'AuthController'中尋找'getLogin'方法。 – fubar

回答

0

這已解決。我只是將以下方法添加到AuthController.php。

public function getLogin() 
{ 
    if (view()->exists('auth.authenticate')) { 
     return view('auth.authenticate'); 
    } 

    return view('auth.login'); 
} 
相關問題