Ad
Method App\Http\Controllers\Controller::create2/{sku} Does Not Exist
How to pass a value in the route of laravel, I have tried to pass SKU in the laravel but it's showing me the error.
$sku = $request->SKU_code;
return redirect()->route('create.step2',['sku', $sku]);
route
Route::get('create/step-2', [email protected]/{sku}')->name('create.step2');
Ad
Answer
You should pass parameter like below:
$sku = $request->SKU_code;
return redirect()->route('create.step2',['sku', $sku]);
Route::get('create/step-2/{sku}', '[email protected]')->name('create.step2');
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS - Conditionally Load a Different Page
- → Make a Laravel collection into angular array (octobercms)
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
- → Validating fileupload(image Dimensions) in Backend Octobercms
- → OctoberCMS Fileupload completely destroys my backend
- → How do I call the value from another backed page form and use it on a component in OctoberCms
Ad