Build and Secure a Laravel API

Learn how to build and secure an API with Laravel and Auth0.
Read more…

Brought to you by @holly :dancer:t2:

Let us know if you have any questions in the comments below!

When try to POST using Auth0, this throws this error , using key from Auth0.(i’ve used your already made GitHub ptoject)

Illuminate\Contracts\Container\BindingResolutionException: Target class [Auth0\Login\Contract\Auth0UserRepository] does not exist. in file /root/laravel-api-auth/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 832

/root/laravel-api-auth/vendor/laravel/framework/src/Illuminate/Container/Container.php(712): Illuminate\Container\Container->build('Auth0\\Login\\Con...')

GET worked.

Same error as @TobbyReign

I also have a “config/auth0.php” versus what the article mentions “config/laravel-auth0.php” and it does not align 100% with the article.