compact()Is it compatible with PHP7? I'm trying to return a response from a controller, but I can't catch the response in postman. If I echo the response, on the other hand, I get the response. but
return response()->success(compact('result'), 200)returns an empty
Auth::user()return the authenticated user that was retrieved from the external API
Okay, so I'm building an app that calls an external API. My external API gets all the data I need (users, etc..). I need to login to use my app, but I also want to be able to use laravel Auth function as normal. So I want to log in my user, but the user is stored in my external app, which I retrieve using my external API.
Laravel -> calls external API -> gets user