Skip to content

Instantly share code, notes, and snippets.

View hardik-satasiya's full-sized avatar

hardik satasiya hardik-satasiya

View GitHub Profile
@hardik-satasiya
hardik-satasiya / get backend user details
Created February 8, 2022 06:29
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);