configuration

Install API route file and configure Sanctum for API authentication.

php artisan php artisan install:api

Syntax

Syntax
php artisan install:api

Explanation

Creates routes/api.php, publishes Sanctum configuration and migrations, and adds API middleware. Essential for setting up a new API in a Laravel project.

Example

Example
php artisan install:api

Explanation

Creates routes/api.php, publishes Sanctum configuration and migrations, and adds API middleware. Essential for setting up a new API in a Laravel project.