This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I create a routes.php in plugin and this is my route Route::get('backend/acme/demo/controllers/post','PostmentController@index');
but when I get the url it shows Class PostmentController does not exist
I need help :( Thanks!
I think you have to fully qualify your class.
But you should not normally have to to do this, look at the routes page again to see how closures are used in the normal situation.
@wnsoajgh - You can take a look at this for a very quick example. @daftspunk is one of the two original authors of OctoberCMS https://github.com/daftspunk/oc-laravelapi-plugin
Last updated
Sorry about that. Edited my comment to include the link. That was way too late in the night!
1-5 of 5