This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

wnsoajgh
wnsoajgh

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!

axomat
axomat

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.

pratyushpundir6424
pratyushpundir6424

@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

axomat
axomat

Look at what?

pratyushpundir6424
pratyushpundir6424

Sorry about that. Edited my comment to include the link. That was way too late in the night!

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.