mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:17:31 -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);
 | 
					        'message' => 'Nothing to see here!'], 404);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function notFoundClient()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return abort(404);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected function errorResponse($response, $httpErrorCode = 400)
 | 
					    protected function errorResponse($response, $httpErrorCode = 400)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $error['error'] = $response;
 | 
					        $error['error'] = $response;
 | 
				
			||||||
 | 
				
			|||||||
@ -12,3 +12,5 @@ Route::group(['middleware' => ['auth:contact'], 'prefix' => 'client', 'as' => 'c
 | 
				
			|||||||
	Route::get('logout', 'Auth\ContactLoginController@logout')->name('logout');
 | 
						Route::get('logout', 'Auth\ContactLoginController@logout')->name('logout');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Route::fallback('BaseController@notFoundClient');
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user