Fix invoice view when not logged in

This commit is contained in:
Deon George 2022-09-30 09:35:58 +10:00
parent ffcab790fc
commit 6aa30f537b

View File

@ -193,7 +193,7 @@ Route::group(['middleware'=>['theme:adminlte-be','auth'],'prefix'=>'u'],function
// Doorman Code Routes // Doorman Code Routes
Route::group(['middleware'=>['theme:adminlte-be'],'prefix'=>'u'],function() { Route::group(['middleware'=>['theme:adminlte-be'],'prefix'=>'u'],function() {
Route::get('invoice/{o}/email/{code}',[HomeController::class,'invoice_pdf_email']) Route::get('invoice/{o}/email/{code}',[InvoiceController::class,'view'])
->where('o','[0-9]+') ->where('o','[0-9]+')
->where('code','[0-9A-Z]{6}'); ->where('code','[0-9A-Z]{6}');
}); });