vendredi 19 mars 2021

how to pass url from controller action in laravel?

Consider my current URL is

https://web.com/user/order/createOrder/200/221

I want in controller function action URL should be with different perameters

https://web.com/user/order/createOrder/100/200

how I can do this in return action of controller function my current action is

return redirect()->route('create.order')->with('success' , 'Status Changed');
   

here is my route

 Route::get('/createOrder/{id?}/{lc?}','OrderController@createOrder')->name('create.order'); 
   


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire