Troubleshooting referencing a model in a laravel controller
问题 I've been trying unsuccessfully to resolve an error in a laravel 5.2 app (carfreak). FatalErrorException in PropertyController.php line 85: Class 'App\Models\CarModel' not found I have moved the default user model to a folder app/models and made the necessary changes so that it's all working fine. Now I have a new controller CarController , and a new model, CarModel that are just not working. It seems to be such a simple problem with namespaces, but I am unable to resolve it. is the model in