php - Add query param to url in the Laravel Controller -


is possible add parameter url route controller?

for example url is: myshop.com/order-finished

and method controller is:

getorderfinished() {   // want add param   myshop.com/order-finished?order_number=w00034335 } 

i want final url myshop.com/order-finished?order_number=w00034335, must add parameter order_number controller method.

edit: no redirections please

yes:

redirect('order-finished?order_number=w00034335'); 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -