Redirect Invoice Download to invoice view

This commit is contained in:
Deon George
2021-09-29 17:36:55 +10:00
parent 7acb9e964b
commit 5be4fe6784
2 changed files with 6 additions and 9 deletions

View File

@@ -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));
}
}