# Auth0 Login Login ServiceProvider

**URL:** <https://community.auth0.com/t/auth0-login-login-serviceprovider/6993>\
**Category:** Get Help\
**Tags:** laravel, auth0\
**Created:** [June 9, 2017, 10:13am UTC](https://community.auth0.com/t/auth0-login-login-serviceprovider/6993 "2017-06-09T10:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madeny](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/madeny/32/4110_2.png) [@madeny](https://community.auth0.com/u/madeny)\
**Post date:** [June 9, 2017, 10:13am UTC](https://community.auth0.com/t/auth0-login-login-serviceprovider/6993/1 "2017-06-09T10:13:00Z")

</div>

I follow up this tutorial using Laravel 5.4 [Creating your first Laravel app and adding authentication  
 ](https://auth0.com/blog/creating-your-first-laravel-app-and-adding-authentication/)

But I can’t retrieve Auth0 users, the registration works fine in my dashboard new users are created in Auth0 server, but not in my local database and also I can’t dd(Auth0::getUser());

I get this error: Class ‘Auth0\Login\LoginServiceProvider’ not found  
I’ve added this Auth0\Login\LoginServiceProvider::class, in my provider array and ‘Auth0’ =\> Auth0\Login\Facade\Auth0::class, in my aliases.

![This is my controller](https://sea1.discourse-cdn.com/auth0/storage/temp/252-screenshot-2017-06-09-050240.png)

I did all steps on configuration from Auth0 docs: [Auth0 PHP (Laravel) SDK](https://auth0.com/docs/quickstart/webapp/laravel)

I’m out off option now!

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 14, 2017, 10:28pm UTC](https://community.auth0.com/t/auth0-login-login-serviceprovider/6993/2 "2017-06-14T22:28:57Z")

</div>

In relation to your statement about only seeing the users being persisted to Auth0 and not locally have in mind the following notes in the [quickstart](https://auth0.com/docs/quickstart/webapp/laravel/01-login):

> The plugin comes with an authentication driver called auth0. This driver defines a user structure that wraps the Normalized User Profile defined by Auth0, **and it doesn’t actually persist the object** , it just stores it in the session for future calls.  
> (…)  
> If you need a more advanced custom solution, you can extend the Auth0UserRepository class.

With the above in mind and in case you have not provided a custom implementation yet then that would explain why you’re only seeing users persisted to Auth0.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/auth0-login-login-serviceprovider/6993/3 "2018-03-02T05:54:31Z")

</div>


