0
I had installed Laravel’s Passport, but, I decided to work with JWT (removed via Composer) Now Laravel is not locating my functions in the controller What am I supposed to do? It seems I have to change some configuration
BadMethodCallException: Method [getEstudantesTodos] does not exist on [App\Http\Controllers\TurmasController]. in file C:\sgeweb\api\vendor\laravel\framework\src\Illuminate\Routing\Controller.php on line 68
It seems to me that the error has no relation to the problem of your controller. Could you edit the question and provide more information? For example, the version of the Laravel used, the Composer packages...
– Wallace Maxters
@Wallacemaxters really didn’t have to do with the controller. It was working all right until I uninstall My Laravel Passport is 5.6
– Luis Souza
Yes, but as you say that the problem is in Passport but you are saying that it has nothing to do with the controller, and the code shown in the question is an error referring to a controller?
– Wallace Maxters
If you install Passport again, does it? If not, we already know the problem isn’t there. Maybe you’re talking about the configuration of
config/auth.php
.– Wallace Maxters
@Wallacemaxters is the error that appeared after I uninstalled. Laravel is not accepting the controller path
– Luis Souza
In fact, the error messages are very clear: "Method getEstudantesAll does not exist in the App Http Controllers Turmascontroller in the file ... Controller.php . The problem is that you have a method that is being searched for by a route that simply does not exist.
– Wallace Maxters
@Wallacemaxters There is. It was working normally until I uninstalled Passport. I created a new controller to test and it worked. It seems to me that when I uninstalled Passport some problem occurred in the configuration of Controllers
– Luis Souza
@Wallacemaxters There is a problem in configuring Laravel that lost the route of controller functions when uninstalling Passport. I created another controller and copied all the previous Controller and changed the route and worked
– Luis Souza