Support the ongoing development of Laravel.io →
posted 7 years ago
Requests
Last updated 1 year ago.
0

If you are on Laravel <= 5.2.x you can use implicit controllers, check the controller docs.

Route::controller('blah', 'BlahController');

//  POST yoursite.com/blah/blah

public function postBlah(...) { ... }

If you are on 5.3 they have been removed and you are left with resource controllers. The simplest thing to do is just define them explicitly.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

gosman gosman Joined 12 Sep 2016

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.