Error uninstalling Passport Laravel [closed]

0

I had installed Laravel Passport, but I decided to work with JWT (I removed it via composer) Now Laravel is not locating my functions in the controller What should I do? It looks like 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
    
asked by anonymous 09.07.2018 / 17:30

1 answer

1

You can remove the passport manually by deleting the "laravel / passport" line: "....." in your composer.json file, then run the composer update using composer update.

Make sure to remove references in the app.config file - Laravel \ Passport \ PassportServiceProvider :: class

And all classes that depend on the passport must also be edited. The most common classes are:

User templates, HasApiToken traits. AuthServiceProvider, remove Passport :: routes (); in your boot method.

    
13.07.2018 / 22:59