i am using laravel 10.48.14 and whenever i want to run “php artisan install:api , it gives me the error
ERROR There are no commands defined in the “install” namespace.
4
The command you are using is for Laravel 11. For Laravel 10.x, you can find your API enpoints in routes/api.php
. To use an authenication token for your API scaffolding, you need to install Scantum. You can use the command:
<code>composer require laravel/sanctum
</code>
<code>composer require laravel/sanctum
</code>
composer require laravel/sanctum
You can read more about Laravel 10 Sanctum here.