# \#laravel

**URL:** https://community.auth0.com/tag/laravel/618.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Completely LOST trying to build an authenticated Laravel Backend API](https://community.auth0.com/t/completely-lost-trying-to-build-an-authenticated-laravel-backend-api/121527)

<div class="topic-metadata">

**Author:** [@kenprogrammer](https://community.auth0.com/u/kenprogrammer)\
**Replies:** 5\
**Last updated:** [November 25, 2023, 5:12pm UTC](https://community.auth0.com/t/completely-lost-trying-to-build-an-authenticated-laravel-backend-api/121527 "2023-11-25T17:12:43Z")

</div>

I just want to build an authenticated Laravel API. So I came across the following tutorial: Publishing package configuration so as to generate configuration file doesn’t work. The context is completely different with …

---

## [Laravel 9 / Auth0 SDK 7 - need 2 auth guards for web vs API paths](https://community.auth0.com/t/laravel-9-auth0-sdk-7-need-2-auth-guards-for-web-vs-api-paths/98152)

<div class="topic-metadata">

**Author:** [@toby5box](https://community.auth0.com/u/toby5box)\
**Replies:** 6\
**Last updated:** [January 25, 2023, 5:42am UTC](https://community.auth0.com/t/laravel-9-auth0-sdk-7-need-2-auth-guards-for-web-vs-api-paths/98152 "2023-01-25T05:42:47Z")

</div>

We use both web app auth (session) for admin and stateless (jwt) for our API – got this working with considerable effort with Laravel 8 + Auth0 SDK v6 – we are trying to update to Laravel 9 and Auth0 SDK v7 – I have w…

---

## [Auth0 Laravel Package broken with composer update?](https://community.auth0.com/t/auth0-laravel-package-broken-with-composer-update/92590)

<div class="topic-metadata">

**Author:** [@FuturShoc](https://community.auth0.com/u/FuturShoc)\
**Replies:** 6\
**Last updated:** [October 20, 2022, 6:35am UTC](https://community.auth0.com/t/auth0-laravel-package-broken-with-composer-update/92590 "2022-10-20T06:35:06Z")

</div>

I just did a composer update on our newly upgraded Laravel 9.x app which is using the Auth0 package provided by Auth0. It’s suddenly broken. Can someone offer any insight? Any use of the Auth:: facade is now throwing th…

---

## [Implementing Auth0 in addition to existing Laravel Auth](https://community.auth0.com/t/implementing-auth0-in-addition-to-existing-laravel-auth/91225)

<div class="topic-metadata">

**Author:** [@zac.pl](https://community.auth0.com/u/zac.pl)\
**Replies:** 3\
**Last updated:** [October 12, 2022, 7:37am UTC](https://community.auth0.com/t/implementing-auth0-in-addition-to-existing-laravel-auth/91225 "2022-10-12T07:37:30Z")

</div>

Please include the following information in your post: Which SDK this is regarding: Auth0-PHP SDK Version: 7 Platform Version: Laravel 9.30.1 I’m having a similar issue to this one posted last year by @tas without any…

---

## [SSO with biometrics in a web wrapper app on iOS](https://community.auth0.com/t/sso-with-biometrics-in-a-web-wrapper-app-on-ios/91144)

<div class="topic-metadata">

**Author:** [@isaiah\_fisher](https://community.auth0.com/u/isaiah_fisher)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 11:57pm UTC](https://community.auth0.com/t/sso-with-biometrics-in-a-web-wrapper-app-on-ios/91144 "2022-10-03T23:57:48Z")

</div>

I am currently trying to integrate auth0 sso into an existing workflow. The existing workflow is an iOS wrapper application with minimal functionality which loads in a website using Laravel. Currently, the application us…

---

## [Real Management API docs for PHP SDK?](https://community.auth0.com/t/real-management-api-docs-for-php-sdk/91261)

<div class="topic-metadata">

**Author:** [@david29](https://community.auth0.com/u/david29)\
**Replies:** 4\
**Last updated:** [September 26, 2022, 8:56am UTC](https://community.auth0.com/t/real-management-api-docs-for-php-sdk/91261 "2022-09-26T08:56:34Z")

</div>

I can’t seem to find any usable documentation on using the Management API through the PHP SDK. I found a single example here: However, this is just for making an initial request. Isn’t there some sort of doc which sh…

---

## [Reading auth0 credentials from db on laravel project](https://community.auth0.com/t/reading-auth0-credentials-from-db-on-laravel-project/84902)

<div class="topic-metadata">

**Author:** [@leandro](https://community.auth0.com/u/leandro)\
**Replies:** 3\
**Last updated:** [June 13, 2022, 4:21pm UTC](https://community.auth0.com/t/reading-auth0-credentials-from-db-on-laravel-project/84902 "2022-06-13T16:21:31Z")

</div>

Hi guys my app is working nice but now I need to read auth0 credentials from db instead of config/auth0.php file? To provide more details: Im buildding a multitenant application. Tenant should use different auth0 cred…

---

## [Auth0 JWT does not have permissions](https://community.auth0.com/t/auth0-jwt-does-not-have-permissions/82849)

<div class="topic-metadata">

**Author:** [@DispatchCode](https://community.auth0.com/u/DispatchCode)\
**Replies:** 11\
**Last updated:** [May 17, 2022, 2:58pm UTC](https://community.auth0.com/t/auth0-jwt-does-not-have-permissions/82849 "2022-05-17T14:58:57Z")

</div>

Hello, we’re trying to use scopes for our application (PHP + Laravel framework) and the JWT returned by Auth0 doesn’t seem to have the requested permissions. We did the following after installing the SDK: we created a…

---

## [How to set the sessionStore in laravel auth0 v7](https://community.auth0.com/t/how-to-set-the-sessionstore-in-laravel-auth0-v7/81863)

<div class="topic-metadata">

**Author:** [@Jan](https://community.auth0.com/u/Jan)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 11:20am UTC](https://community.auth0.com/t/how-to-set-the-sessionstore-in-laravel-auth0-v7/81863 "2022-04-28T11:20:44Z")

</div>

By default the underlying auth0 php sdk will use the CookieStore to store session information. How can I configure it to use the laravel built in session storage feature?

---

## [Auth driver \[auth0\] for guard \[auth0\] is not defined](https://community.auth0.com/t/auth-driver-auth0-for-guard-auth0-is-not-defined/80921)

<div class="topic-metadata">

**Author:** [@peter20](https://community.auth0.com/u/peter20)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 11:20am UTC](https://community.auth0.com/t/auth-driver-auth0-for-guard-auth0-is-not-defined/80921 "2022-04-28T11:20:00Z")

</div>

When we attempt to integrate Auth0 with our Swoole/Laravel application we get an error: InvalidArgumentException Auth driver \[auth0\] for guard \[auth0\] is not defined. Thrown from Illuminate/Auth/AuthManager.php:97 la…

---

## [Laravel Nova administration panel with Auth0](https://community.auth0.com/t/laravel-nova-administration-panel-with-auth0/80902)

<div class="topic-metadata">

**Author:** [@Ruitjes](https://community.auth0.com/u/Ruitjes)\
**Replies:** 3\
**Last updated:** [April 21, 2022, 12:10pm UTC](https://community.auth0.com/t/laravel-nova-administration-panel-with-auth0/80902 "2022-04-21T12:10:51Z")

</div>

Hey guys, I was wondering if it was possible to implement Auth0 with Laravel Nova. Is it even possible?

---

## [In laravel-auth0, the SDK is not exposed, so how can we renew tokens?](https://community.auth0.com/t/in-laravel-auth0-the-sdk-is-not-exposed-so-how-can-we-renew-tokens/79798)

<div class="topic-metadata">

**Author:** [@chris-workinggears](https://community.auth0.com/u/chris-workinggears)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 1:44pm UTC](https://community.auth0.com/t/in-laravel-auth0-the-sdk-is-not-exposed-so-how-can-we-renew-tokens/79798 "2022-03-16T13:44:25Z")

</div>

Please include the following information in your post: Which SDK this is regarding: e.g. auth0-node auth0/laravel-auth0 SDK Version: e.g. 2.29.0 6.5 Platform Version: e.g. Node 12.19.0 PHP8.1 Currently, a…

---

## [What prevents the authorization in this Laravel 8 API?](https://community.auth0.com/t/what-prevents-the-authorization-in-this-laravel-8-api/77476)

<div class="topic-metadata">

**Author:** [@razvanz](https://community.auth0.com/u/razvanz)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 8:10pm UTC](https://community.auth0.com/t/what-prevents-the-authorization-in-this-laravel-8-api/77476 "2022-02-07T20:10:48Z")

</div>

I am working on a Laravel 8 API. I use Auth0 for user registration and login. I need the user’s id returned by Auth0 to use in my own application. For this purpose I have the code, I have installed Guzzle with: comp…

---

## [Why are some claims visible at the Auth0 user profile and not in the id\_token jtw payload?](https://community.auth0.com/t/why-are-some-claims-visible-at-the-auth0-user-profile-and-not-in-the-id-token-jtw-payload/73827)

<div class="topic-metadata">

**Author:** [@lasse](https://community.auth0.com/u/lasse)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 2:35pm UTC](https://community.auth0.com/t/why-are-some-claims-visible-at-the-auth0-user-profile-and-not-in-the-id-token-jtw-payload/73827 "2021-12-07T14:35:38Z")

</div>

Hi there. Why are some claims visible at the Auth0 user profile and not in the id\_token jtw payload? I’m specifically missing the sid claim needed for Front Channel Logout, which is visible at the users prorfile at Auth…

---

## [(Programmatically) bypass the auth0 authentication](https://community.auth0.com/t/programmatically-bypass-the-auth0-authentication/70500)

<div class="topic-metadata">

**Author:** [@handikadwi7](https://community.auth0.com/u/handikadwi7)\
**Replies:** 1\
**Last updated:** [October 9, 2021, 12:44am UTC](https://community.auth0.com/t/programmatically-bypass-the-auth0-authentication/70500 "2021-10-09T00:44:48Z")

</div>

so here’s the thing I have two apps there is login button in the first app. If the button is clicked, the user will be automatically logged in to the second app and if the user logs himself out from the second app, he…

---

## [Strategy for implementing Auth0 in a React app with a Laravel backend](https://community.auth0.com/t/strategy-for-implementing-auth0-in-a-react-app-with-a-laravel-backend/46376)

<div class="topic-metadata">

**Author:** [@stevef](https://community.auth0.com/u/stevef)\
**Replies:** 3\
**Last updated:** [September 24, 2021, 10:06am UTC](https://community.auth0.com/t/strategy-for-implementing-auth0-in-a-react-app-with-a-laravel-backend/46376 "2021-09-24T10:06:37Z")

</div>

Hi :slight\_smile: I am working on wrapping my head around on the correct way to ask this question, so here it goes. I have a web application. I do not want to call it a SPA and I do not want to call it a “Web Applicatio…

---

## [Timeframe for auth0-php 8.0 support in Laravel package?](https://community.auth0.com/t/timeframe-for-auth0-php-8-0-support-in-laravel-package/67388)

<div class="topic-metadata">

**Author:** [@nie7321](https://community.auth0.com/u/nie7321)\
**Replies:** 4\
**Last updated:** [August 6, 2021, 2:29pm UTC](https://community.auth0.com/t/timeframe-for-auth0-php-8-0-support-in-laravel-package/67388 "2021-08-06T14:29:32Z")

</div>

Hi Auth0! What’s the timeframe, at least for a beta release, of the Laravel SDK with support for auth0-php v8? I wanted to add auth0 to my project, but I’ve got other dependencies on lcobucci/jwt. auth0-php v7 and olde…

---

## [Developing and Securing GraphQL APIs with Laravel](https://community.auth0.com/t/developing-and-securing-graphql-apis-with-laravel/22565)

<div class="topic-metadata">

**Author:** [@ramiro](https://community.auth0.com/u/ramiro)\
**Replies:** 9\
**Last updated:** [August 5, 2021, 7:49am UTC](https://community.auth0.com/t/developing-and-securing-graphql-apis-with-laravel/22565 "2021-08-05T07:49:33Z")

</div>

Learn how to develop GraphQL APIs with Laravel and how to secure them with Auth0. Read on :hammer\_and\_wrench:\>\> How to Develop and Secure GraphQL APIs with Laravel PHP

---

## [Laravel - not extracting user details from session](https://community.auth0.com/t/laravel-not-extracting-user-details-from-session/66763)

<div class="topic-metadata">

**Author:** [@danielvyyer](https://community.auth0.com/u/danielvyyer)\
**Replies:** 2\
**Last updated:** [July 26, 2021, 9:14am UTC](https://community.auth0.com/t/laravel-not-extracting-user-details-from-session/66763 "2021-07-26T09:14:02Z")

</div>

Hello everyone, I’ve went through the instructions in the site to set up my web-based Laravel application, has successfully connected it to the application and can see successful logins under the user logs tab. The pro…

---

## [Laravel-PHP Custom user Handling Invalid State Exception](https://community.auth0.com/t/laravel-php-custom-user-handling-invalid-state-exception/64958)

<div class="topic-metadata">

**Author:** [@acooke](https://community.auth0.com/u/acooke)\
**Replies:** 12\
**Last updated:** [June 24, 2021, 7:18pm UTC](https://community.auth0.com/t/laravel-php-custom-user-handling-invalid-state-exception/64958 "2021-06-24T19:18:22Z")

</div>

Hello, I have recently implemented the quickstart PHP laravel login guide for webapps. I successfully implemented the guide for generic user handling, however my app requires some custom user handling. I followed the re…

---

## [SPA-Laravel: Management API best practices](https://community.auth0.com/t/spa-laravel-management-api-best-practices/60979)

<div class="topic-metadata">

**Author:** [@FullStackFool](https://community.auth0.com/u/FullStackFool)\
**Replies:** 3\
**Last updated:** [April 13, 2021, 4:02pm UTC](https://community.auth0.com/t/spa-laravel-management-api-best-practices/60979 "2021-04-13T16:02:46Z")

</div>

Current setup: SPA using auth0-spa-js library Laravel API using auth0/login package I can: Redirect SPA to Universal login to obtain a JWT with the audience for my custom API Use that JWT, in the SPA, to access my A…

---

## [500 Error when implementing with Laravel Request Facade](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762)

<div class="topic-metadata">

**Author:** [@plusrepublic](https://community.auth0.com/u/plusrepublic)\
**Replies:** 2\
**Last updated:** [June 5, 2020, 6:37am UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762 "2020-06-05T06:37:20Z")

</div>

Hi, I am trying to integrate Auth0 on a project that is built using Laravel 7. When submitting a post request and attempting to use the Request facade, I receive a 500 error without any of Laravel’s usual error messagin…

---

## [Laravel-driven membership system with the help of Auth0 users & roles](https://community.auth0.com/t/laravel-driven-membership-system-with-the-help-of-auth0-users-roles/39481)

<div class="topic-metadata">

**Author:** [@roenfeldt](https://community.auth0.com/u/roenfeldt)\
**Replies:** 0\
**Last updated:** [March 16, 2020, 4:14pm UTC](https://community.auth0.com/t/laravel-driven-membership-system-with-the-help-of-auth0-users-roles/39481 "2020-03-16T16:14:50Z")

</div>

Good day to y’all, dear Auth0 Community. TL;DR: What’s the possible/recommended user registration flow on a Laravel SaaS website, offering free AND paid subscriptions? I’m planning to develop a Laravel-driven SaaS webs…

---

## [Laravel User Impersonation](https://community.auth0.com/t/laravel-user-impersonation/36171)

<div class="topic-metadata">

**Author:** [@stanley](https://community.auth0.com/u/stanley)\
**Replies:** 5\
**Last updated:** [January 15, 2020, 9:13pm UTC](https://community.auth0.com/t/laravel-user-impersonation/36171 "2020-01-15T21:13:55Z")

</div>

Hi, Laravel allows you to easily impersonate users using Auth::login($user). Since we implemented Auth0 for our users to login, we are no longer able to do this. After performing an Auth::login($user) and redirecting to…

---

## [Add roles and permissions to user](https://community.auth0.com/t/add-roles-and-permissions-to-user/21007)

<div class="topic-metadata">

**Author:** [@didi](https://community.auth0.com/u/didi)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 9:07pm UTC](https://community.auth0.com/t/add-roles-and-permissions-to-user/21007 "2019-02-18T21:07:24Z")

</div>

I am using Laravel with the Auth0 PHP SDK and the Laravel plugin. With below rule to attach roles, permissions and groups to users: function (user, context, callback) { context.idToken\['https://NAME.auth0.com/claims/a…

---

## [Laravel Spark and Auth0](https://community.auth0.com/t/laravel-spark-and-auth0/9550)

<div class="topic-metadata">

**Author:** [@scott.bowler](https://community.auth0.com/u/scott.bowler)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:38pm UTC](https://community.auth0.com/t/laravel-spark-and-auth0/9550 "2018-12-17T15:38:52Z")

</div>

There are many great tutorials on how to integrate Auth0 with Laravel but I can’t find any guides on how to integrate with Laravel Spark. If anyone has some experience with getting it up and running with the Spark User …

---

## [Laravel API is not authenticating user on sending access token from vueJs](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431)

<div class="topic-metadata">

**Author:** [@mubashar.hassan](https://community.auth0.com/u/mubashar.hassan)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:19pm UTC](https://community.auth0.com/t/laravel-api-is-not-authenticating-user-on-sending-access-token-from-vuejs/9431 "2018-12-17T15:19:55Z")

</div>

Hello, I have followed all given instructions given in: https://auth0.com/docs/quickstart/backend/laravel/01-authorization But when I send access token from the VueJs app, then add middleware auth:api it authenticates …

---

## [Can I do an authorization code grant flow in Laravel?](https://community.auth0.com/t/can-i-do-an-authorization-code-grant-flow-in-laravel/8610)

<div class="topic-metadata">

**Author:** [@emcintyre.idt911](https://community.auth0.com/u/emcintyre.idt911)\
**Replies:** 0\
**Last updated:** [October 28, 2017, 12:46pm UTC](https://community.auth0.com/t/can-i-do-an-authorization-code-grant-flow-in-laravel/8610 "2017-10-28T12:46:11Z")

</div>

I’m building a prototype to simulate what it would look like to convert a couple of our applications to using Auth0, so we can take advantage of single sign-on. I was able to get a Spring Boot API integrated and secured …

---

## [Using Auth0 with the lumen framework](https://community.auth0.com/t/using-auth0-with-the-lumen-framework/8592)

<div class="topic-metadata">

**Author:** [@fabian.waeber](https://community.auth0.com/u/fabian.waeber)\
**Replies:** 1\
**Last updated:** [October 27, 2017, 5:21pm UTC](https://community.auth0.com/t/using-auth0-with-the-lumen-framework/8592 "2017-10-27T17:21:41Z")

</div>

I’m trying to integrate Auth0 into my application which is based on the lumen framework by laravel. Has anyone experience with this? I can’t bring it to work with the Laravel-Tutorial. The only resource I foud on Goog…

---

## [Laravel seed project gives NULL when trying to fetch the user](https://community.auth0.com/t/laravel-seed-project-gives-null-when-trying-to-fetch-the-user/8180)

<div class="topic-metadata">

**Author:** [@juan.villgs](https://community.auth0.com/u/juan.villgs)\
**Replies:** 1\
**Last updated:** [September 21, 2017, 6:58pm UTC](https://community.auth0.com/t/laravel-seed-project-gives-null-when-trying-to-fetch-the-user/8180 "2017-09-21T18:58:34Z")

</div>

Hello, I’ve an application which is using the traditional Authentication as provided by Laravel. We want to replace this with Auth0, and we are trying to set it up using the Laravel’s seed project and following the prov…

[Next page](https://community.auth0.com/tag/laravel/618.md?match_all_tags=true&page=1&tags%5B%5D=laravel)
