laravel use auth logincontroller for api login code example Example: laravel authentication composer require laravel/ui php artisan ui vue --auth