Sửa lỗi notfoundhttpexception in routecollection php line 161 năm 2024

My CollectionController looks like this .

class CollectionController extends Controller { /**
  • Display a listing of the resource.
         *
  • @return Response */ public function __construct(){ $this->middleware('role:collector'); // replace 'collector' with whatever role you need. } public function getHome(){ $empid= Auth::user()->empid; $invoice = Invoice::where('Status','=',1)->orderBy('Id', 'desc')->get(); return View('collectionmodule/home')->with(array('invoices'=>$invoice)); } public function getPayment(){ dd('sssss'); $id =$invoiceid; $invoice = Invoice::where('Id','=',$id)->payments()->comments()->get(); return View('collectionmodule/payment')->with(array('invoice'=>$id)); } }

My Routes for this Class are as follow

Route::controller('collection/home','CollectionController'); Route::controller('collection/payment','CollectionController');

I am getting the following error

NotFoundHttpException in RouteCollection.php line 161:

None of the routes are working can anyone help me out?

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.