Target class [Barryvdh\Cors\HandleCors] does not exist.
snippet in php

Target class [Barryvdh\Cors\HandleCors] does not exist.

user5858

#Add [Barryvdh\Cors\HandleCors] to $middlewareGroups in Kernel.php
'cors' => [
\Barryvdh\Cors\HandleCors::class,
],

Target class [ExamSeeder] does not exist.

user9073

php composer dump-autoload
php artisan migrate:refresh --seed