Created
February 8, 2022 06:29
-
-
Save hardik-satasiya/82bef0a844595a2a6f32a00bb972d8d0 to your computer and use it in GitHub Desktop.
How to get backend user information in backend controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import facade | |
use BackendAuth; | |
// use facade | |
$backendUser = BackendAuth::getUser(); | |
// now use | |
// $user->id in your code | |
dd($backendUser); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get more exciting tips and tricks from TutorialMeta.com