Search code examples
laravel-5dingo-api

Fatal error: Class 'Dingo\Api\Auth\Provider\LaravelServiceProvider' not found


I create new laravel(5.3) project with composer and install dingo package with this command:

composer require dingo/api:1.0.x@dev

Then I try to publish it as I see in this video. Here is the screenshot of my cmd window: enter image description here I also added Dingo\Api\Auth\Provider\LaravelServiceProvider::class, line to my app.php so I couldnt figure out what problem is here.

EDITED

I search for file name "LaravelServiceProvider" and find it in "MyProject\vendor\dingo\api\src\Provider\LaravelServiceProvider.php" here. So the issue I have is path I think.. still working handle it


Solution

  • Actually I just undo and remake same steps but the thing is I didnt update composer after edit composer.json with "composer require dingo/api:1.0.x@dev" line. I type and enter "composer update". And added class providers and its worked.