mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:37:33 -05:00 
			
		
		
		
	Handle fallback routes from different route group
This commit is contained in:
		
							parent
							
								
									241cb02a86
								
							
						
					
					
						commit
						4cc9ca2748
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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');
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user