A
A
andryy2017-09-30 00:20:18
Laravel
andryy, 2017-09-30 00:20:18

How to change directory for placing models in Laravel 5.2.*?

Help with laravel documentation.
Eloquent ORM:
".. Models are usually located in the app folder, but you can put them in any place where the autoloader works according to your composer.json file.
Questions:
- what is an autoloader?;
- how to find out in which place does it work?;
- and how is it related to composer.json?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-09-30
@andryy

php artisan make:model Model/User/User
Get the User model in the namespace App\Model\User

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question