Laravel 5—and most of the advice from the community for quite some time—has done away with the concept of a models folder. But if your old app uses it, just create a models directory within app and classmap autoload it (by adding it to composer.json’s classmap autoload section):
Note that the User.php that comes with Laravel 5 lives in the app directory, so you could also place your model files there and put them in your top level namespace (e.g. SaveMyProposals/Conference for the Conference model).
- You must login to post comments
لطفا جهت ارسال پاسخ به سایت وارد شوید.