create a guard for laravel code example Example: laravel setup auth // Laravel 5.x php artisan make:auth