1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Handle fallback routes from different route group

This commit is contained in:
David Bomba 2019-07-17 08:59:09 +10:00
parent 241cb02a86
commit 4cc9ca2748
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -11,4 +11,6 @@ Route::group(['middleware' => ['auth:contact'], 'prefix' => 'client', 'as' => 'c
Route::get('logout', 'Auth\ContactLoginController@logout')->name('logout');
});
});
Route::fallback('BaseController@notFoundClient');