Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Application Helper: auth

The auth helper function in Laravel is used to retrieve an instance of Illuminate\Contracts\Auth\Factory, which is responsible for handling authentication. It is an alternative to using the Auth facade. If no arguments are provided, auth() returns the currently logged in user. You can also specify a custom authentication guard by passing the guard name as an argument. When $guard is...