Support the ongoing development of Laravel.io →
Requests Input Forms
Last updated 2 years 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!

Eventy

Your banner here too?

intrepidws intrepidws Joined 20 May 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.