laravel-controller

Routing Error Due to a group prefix in my route

廉价感情. 提交于 2020-08-20 12:10:31
问题 In my routing if i remove the {page} prefix it works completely fine but when i put it i get an error. For other it is working fine but it is not working for this route: Route::get('/{categories}', 'AdminVisible\CostIncludeController@index'); My AdminPageController: public function index($page) { $page = Page::where('Pages_Slug_Name',$page)->firstorFail(); $pages = Page::all(); return view('admin.pages.page',[ 'page' => $page, ],compact('pages')); } My CostIncludeController: public function

Routing Error Due to a group prefix in my route

风流意气都作罢 提交于 2020-08-20 12:09:24
问题 In my routing if i remove the {page} prefix it works completely fine but when i put it i get an error. For other it is working fine but it is not working for this route: Route::get('/{categories}', 'AdminVisible\CostIncludeController@index'); My AdminPageController: public function index($page) { $page = Page::where('Pages_Slug_Name',$page)->firstorFail(); $pages = Page::all(); return view('admin.pages.page',[ 'page' => $page, ],compact('pages')); } My CostIncludeController: public function

Routing Error Due to a group prefix in my route

谁说胖子不能爱 提交于 2020-08-20 12:09:01
问题 In my routing if i remove the {page} prefix it works completely fine but when i put it i get an error. For other it is working fine but it is not working for this route: Route::get('/{categories}', 'AdminVisible\CostIncludeController@index'); My AdminPageController: public function index($page) { $page = Page::where('Pages_Slug_Name',$page)->firstorFail(); $pages = Page::all(); return view('admin.pages.page',[ 'page' => $page, ],compact('pages')); } My CostIncludeController: public function