The Laravel Sanctum documentation states that to add Sanctum to existing Laravel project one has to:
- Require Laravel Sanctum
composer require laravel/sanctum - Publish Sanctum's resources to app dir
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
I'm getting Unable to locate publishable resources. when running (2)
I already tried php artisan clear-compiled and composer dumpautoload in that order
I checked that vendor/laravel/sanctum/src/SanctumServiceProvider.php exists and the boot() method does publishes Sanctum's config and migration
I also checked that SanctumServiceProvider is discovered by autoload by making sure that the source path is listed in autoload_classmap.php
Again, this was an attempt to add Sanctum to an existing Laravel project
Did I miss something?
My setup:
- Laravel 8.37
- PHP 7.3.9
- Composer 2.0.12