It seems like the package is now called: fruitcake/laravel-cors.
If you ran: composer require barryvdh/laravel-cors, please remove it with: composer remove barryvdh/laravel-cors
Did you follow precisely these steps for https://www.rainierlaansite.test ?
- Run
composer require fruitcake/laravel-cors - Include
\Fruitcake\Cors\HandleCors::class,in the$middlewarearray inapp/Http/Kernel.php - Run
php artisan vendor:publish --tag="cors" - Update paths in
config/cors.phpso that you have'paths' => ['api/*'],
PS: please keep in mind that there are extra config parameters to add some security. You can start with setting allowed_origins to https://rainierlaan.test. Here you can find more information: https://github.com/fruitcake/laravel-cors#configuration