jeudi 2 avril 2020

ReflectionException - Class ... does not exist

My project (laravel app) was working fine until I Installed the latest version of xampp (php 7.4) then when I login to my app , I get this error

ReflectionException
Class App\Repositories\StatsRepository does not exist

StatsRepository (dependency injection) is injected in my StatsController

class StatsController extends Controller
{
    private $statsRepository;

    public function __construct(StatsRepository $statsRepository)
    {
        $this->statsRepository = $statsRepository;

I changed NOTHING in my code I already tested with :

  1. composer dump-autoload
  2. php artisan cache:clear
  3. php artisan optimize ... etc




Aucun commentaire:

Enregistrer un commentaire