Redirect Invoice Download to invoice view
This commit is contained in:
parent
7acb9e964b
commit
5be4fe6784
@ -22,11 +22,6 @@ use App\Models\{Invoice,Service,User};
|
||||
*/
|
||||
class HomeController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
/**
|
||||
* Logged in users home page
|
||||
*
|
||||
@ -101,7 +96,7 @@ class HomeController extends Controller
|
||||
abort(404);
|
||||
}
|
||||
|
||||
return $this->invoice_pdf($o);
|
||||
return $this->invoice($o);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -122,9 +117,11 @@ class HomeController extends Controller
|
||||
* @param Service $o
|
||||
* @param string $status
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
* @deprecated
|
||||
*/
|
||||
public function service_progress(Service $o,string $status)
|
||||
{
|
||||
abort(500,'deprecated');
|
||||
return redirect()->to($o->action($status) ?: url('u/service',$o->id));
|
||||
}
|
||||
}
|
@ -103,9 +103,9 @@ Route::group(['middleware'=>['theme:adminlte-be','auth'],'prefix'=>'u'],function
|
||||
|
||||
// Doorman Code Routes
|
||||
Route::group(['middleware'=>['theme:adminlte-be'],'prefix'=>'u'],function() {
|
||||
// Route::get('invoice/{o}/email/{code}','UserHomeController@invoice_pdf_email')
|
||||
// ->where('o','[0-9]+')
|
||||
// ->where('code','[0-9A-Z]{6}');
|
||||
Route::get('invoice/{o}/email/{code}',[HomeController::class,'invoice_pdf_email'])
|
||||
->where('o','[0-9]+')
|
||||
->where('code','[0-9A-Z]{6}');
|
||||
});
|
||||
|
||||
// Frontend Routes (Non-Authed Users)
|
||||
|
Loading…
Reference in New Issue
Block a user