Skip to content

Instantly share code, notes, and snippets.

@hardik-satasiya
Created February 8, 2022 06:29
Show Gist options
  • Save hardik-satasiya/82bef0a844595a2a6f32a00bb972d8d0 to your computer and use it in GitHub Desktop.
Save hardik-satasiya/82bef0a844595a2a6f32a00bb972d8d0 to your computer and use it in GitHub Desktop.
How to get backend user information in backend controller
// import facade
use BackendAuth;
// use facade
$backendUser = BackendAuth::getUser();
// now use
// $user->id in your code
dd($backendUser);
@hardik-satasiya
Copy link
Author

hardik-satasiya commented Feb 8, 2022

You can get more exciting tips and tricks from TutorialMeta.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment