Support the ongoing development of Laravel.io →
Requests Input Forms
Last updated 3 months ago.
0

If you add a node to the route (e.g. /foo/create/person ... assumes person is a $type in the class), then your method should look like function create($type = 'person'). If you're talking about query params, like /foo/create?type=person then that won't get passed as a method, but you can access via Request::input('type').

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

intrepidws intrepidws intrepidws Joined 20 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.