i want to use custom function in Route::resource()
controller like with public function check()
, public function login()
or public function laogout()
, but my code doesnt work, how to use custom functions?
For Example:
Route:
Route::resource('auth', 'AuthenticationController');
View:
Controller:
public function check()
{
//
}
public function login()
{
//
}
public function logout()
{
//
}
I get this error:
NotFoundHttpException in RouteCollection.php line 161: