Create an API routes file and install Laravel Sanctum or Laravel Passport


  • composer - Absolute path to the Composer binary which should be used to install packages Optional
  • force - Overwrite any existing API routes file Optional
  • passport - Install Laravel Passport instead of Laravel Sanctum Optional
  • without-migration-prompt - Do not prompt to run pending migrations Optional
php artisan install:api [--composer [COMPOSER]] [--force] [--passport] [--without-migration-prompt]