# 500 Error when implementing with Laravel Request Facade

**URL:** <https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762>\
**Category:** Get Help\
**Tags:** laravel, auth0\
**Created:** [May 28, 2020, 6:34pm UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762 "2020-05-28T18:34:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plusrepublic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/plusrepublic/32/13404_2.png) [@plusrepublic](https://community.auth0.com/u/plusrepublic)\
**Post date:** [May 28, 2020, 6:34pm UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762/1 "2020-05-28T18:34:51Z")

</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 messaging.

 ![Screen Shot 2020-05-28 at 11.55.32 AM](https://global.discourse-cdn.com/auth0/original/3X/d/f/dfd222d02e43b0dff13d71b4ba59a630aa2938a6.png)

Has anyone else had similar issues or any ideas how to proceed?

Thanks,  
Kristin

---

<div class="post-metadata">

**Author:** ![plusrepublic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/plusrepublic/32/13404_2.png) [@plusrepublic](https://community.auth0.com/u/plusrepublic)\
**Post date:** [June 4, 2020, 9:51pm UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762/2 "2020-06-04T21:51:08Z")

</div>

I had a trait that was calling auth()-\>id(). Replaced that with a function that gets the Auth0 User and it is working now.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 5, 2020, 6:37am UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762/3 "2020-06-05T06:37:20Z")

</div>

Glad you have found it and thanks a lot for sharing it with the rest of community!

---

<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:** [June 20, 2020, 6:37am UTC](https://community.auth0.com/t/500-error-when-implementing-with-laravel-request-facade/43762/4 "2020-06-20T06:37:21Z")

</div>

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