im my routes.php in all Route i have a lang parameter and i need to unset it in controller's function what are the mechanisms to doing this ex:- Route::prefix('{lang?}/admin')->attribute('namespace', 'Admin')->middleware('auth:web')->group(function () { Route::get('/branch/{branch}/products/create', ['uses' => 'BranchesController@createBranchProduct', 'as' => 'admin.branch.products.create']); }); and my controller's function:-enter image description here public function createBranchProduct(Branch $branch) { $categories = Category::all(); return View::make('admin.branches.products.new',['branch' => $branch,'categories'=>$categories]); }
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire