Redirect Invoice Download to invoice view
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user