How to change models directory without any problem?

Posted 9 months ago by alihoushyaripour

Hi,

Since I started writing a project with Laravel, I always used this command to build my models:

php artisan make:model model_name -m

And all of them created in \App\ directory, and now my model numbers are very large, about 50 and now I want to move them into \App\Models\ directory, but there is a problem... I have used them in many places like controllers, services, repositories, static modules and so on.

Because that I need to change many places and there is many risk in it.

Is there any simple way to to change directory of them without any risks and manual changes?

Please sign in or create an account to participate in this conversation.