PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 21, 2022

[FIXED] Laravel 5.4 composer error

 January 21, 2022     composer-php, laravel, php     No comments   

Issue

I am facing a strange issue with Laravel 5.4.9. I tried to install a repository instead might have made a mess by installing it as a controller. Now when I type php artisan route:list, I am getting this error:

[ReflectionException] Class App\Http\Controllers\ProjectRepositoryInterface does not exist.

This ProjectRepositoryInterface is in repository folder and it works normal.

I want to know where the controller classes are registered and stored? Are they stored in a file (like we bind the repository and interface in the app service provider file).

How to get rid of this error?


Solution

Run composer dump-autoload to clear the composer reference to the old file.



Answered By - Joe
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing