diff --git a/app/Http/Controllers/BaseController.php b/app/Http/Controllers/BaseController.php index 4199680fc409..bef3e03bbb78 100644 --- a/app/Http/Controllers/BaseController.php +++ b/app/Http/Controllers/BaseController.php @@ -111,6 +111,11 @@ class BaseController extends Controller 'message' => 'Nothing to see here!'], 404); } + public function notFoundClient() + { + return abort(404); + } + protected function errorResponse($response, $httpErrorCode = 400) { $error['error'] = $response; diff --git a/routes/client.php b/routes/client.php index 0ffe9d6ad3f3..619339038ee3 100644 --- a/routes/client.php +++ b/routes/client.php @@ -11,4 +11,6 @@ Route::group(['middleware' => ['auth:contact'], 'prefix' => 'client', 'as' => 'c Route::get('logout', 'Auth\ContactLoginController@logout')->name('logout'); -}); \ No newline at end of file +}); + +Route::fallback('BaseController@notFoundClient'); \ No newline at end of file