Auth::attempt by userid code example Example: laravel setup auth // Laravel 5.x php artisan make:auth