# Laravel 10 and Auth0 not working

**URL:** <https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-php\
**Created:** [April 8, 2023, 9:25am UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327 "2023-04-08T09:25:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterSteiner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@PeterSteiner](https://community.auth0.com/u/PeterSteiner)\
**Post date:** [April 8, 2023, 9:25am UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/1 "2023-04-08T09:25:43Z")

</div>

i am using laravel 10 and trying to get auth0 to work.  
The auth0 version is: auth0/login: ^7.5

I have tried to reproduce the steps on the page [GitHub - auth0/laravel-auth0: Laravel SDK for Auth0 Authentication and Management APIs.](https://github.com/auth0/laravel-auth0)

Currently I get the error message:  
Auth driver [auth0] for guard [auth0] is not defined.  
What might I have forgotten?  
I would like to see step-by-step tutorials on the auth0 site again. Unfortunately, there are currently only projects that cannot be clearly understood.

---

<div class="post-metadata">

**Author:** ![ojaynico](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ojaynico/32/13238_2.png) [@ojaynico](https://community.auth0.com/u/ojaynico)\
**Post date:** [April 11, 2023, 9:50am UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/2 "2023-04-11T09:50:24Z")

</div>

I was facing the same issue with version 7.5.0 in my laravel application.  
I had to downgrade back to version 7.4.0 of auth0/login.

---

<div class="post-metadata">

**Author:** ![alexandr.macovchin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@alexandr.macovchin](https://community.auth0.com/u/alexandr.macovchin)\
**Post date:** [April 11, 2023, 2:19pm UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/3 "2023-04-11T14:19:30Z")

</div>

this will help you

> **[GitHub - auth0/laravel-auth0 at 7.5.2 - Configuring Your Application](https://github.com/auth0/laravel-auth0/tree/7.5.2#configuring-your-application)**
>
> 7.5.2

---

<div class="post-metadata">

**Author:** ![PeterSteiner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@PeterSteiner](https://community.auth0.com/u/PeterSteiner)\
**Post date:** [April 13, 2023, 8:13pm UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/4 "2023-04-13T20:13:31Z")

</div>

that does not help.  
With a new Laravel project and the instructions, the same error message always comes up. Either it is due to the PHP version or the instructions are not complete.

---

<div class="post-metadata">

**Author:** ![victormarconi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/victormarconi/32/46364_2.png) [@victormarconi](https://community.auth0.com/u/victormarconi)\
**Post date:** [April 16, 2023, 2:38am UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/5 "2023-04-16T02:38:25Z")

</div>

The instructions are probably outdated.

In providers:

```
    'auth0' => [
        'driver' => 'auth0.provider',
        'repository' => \Auth0\Laravel\Auth\User\Repository::class
    ],

```

In guards:

```
    'auth0' => [
        'driver' => 'auth0.guard',
        'provider' => 'auth0',
    ],

```

---

<div class="post-metadata">

**Author:** ![PeterSteiner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@PeterSteiner](https://community.auth0.com/u/PeterSteiner)\
**Post date:** [April 16, 2023, 4:57pm UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/6 "2023-04-16T16:57:39Z")

</div>

> [@victormarconi](#):
>
> `'driver' => 'auth0.guard',`

Thank you very much!  
That is the solution!

---

<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:** [April 30, 2023, 4:58pm UTC](https://community.auth0.com/t/laravel-10-and-auth0-not-working/104327/7 "2023-04-30T16:58:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
