Answers for "user autrhaentication in laravel"

PHP
2

get user auth in laravel

Auth::user();
Posted by: Guest on July-06-2020
1

laravel auth user in constructor

public function __construct()
{
  $this->middleware(function ($request, $next) {
    $this->user = Auth::user();
    return $next($request);
  });
}
Posted by: Guest on July-22-2021

Browse Popular Code Answers by Language