Laravel 5.3 - About Changing the App Directory

2

I created a project, within the project I created my own file structure instead of using the App folder, so I created a call Massage Therapy, in the documentation informs that it is necessary to change the namespace and did the following:

php artisan app: name Massage Therapy

Now the project besides the App folder, now has the Massoterapia folder, but when I try to use the classes that are in the Massotherapy, it always gives Class Not Found, but the namespace and use are straight, what could it be? p>     

asked by anonymous 22.11.2016 / 17:01

1 answer

2

In the file composer.json change:

"psr-4": {
    "Massoterapia\": "app/"
}

for

"psr-4": {
    "Massoterapia\": "nome_do_novo_diretorio/"
}
    
22.11.2016 / 17:32