Skip to content
Advertisement

Laravel Action Route not Define

I have unique problem. I already create Route on web.php, on Controller, and Blade. and working on my localhost. but after publish to real server, I jus got error Action urlcontroller@function not define. this is my code.

JavaScript

this is my web.php

JavaScript

this is my controller

JavaScript

and this is code on blade to call controller@function

this step same as another controller, web, and blade.php. but, just for this rout get me a trouble. thank you

Advertisement

Answer

You have a problem with your route cache, simply do this:

JavaScript

if you want to do same on the server you can define a route in web.php for that like this:

JavaScript

and make ConfigController.php like this

JavaScript

and then go to that route on server example http://your-domain/clear/route

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement