php - Laravel 5 - Change Models,Views,Controllers path -


i have edited psr-4 on composer.json

"autoload": {     "classmap": [         "database"     ],     "psr-4": {         "marka\\urun\\": "vendor/marka/urun/src/",         "app\\": "app/"      },     "files": [         "vendor/marka/urun/src/helpers.php"     ] }, 

i want change file(routes.php, helpers.php , models,views,controllers) pathes : vendor/marka/urun/

enter image description here

how can ?

you're trying modular structure if right.

if so, instead of trying set different namespacing composer each of modules under vendor directory; think may try use http://sky.pingpong-labs.com/docs/2.0/modules

otherwise may know, using psr-4 , directory structure, if coded files necessary files loaded automatically named (namespaced) them.

by way, in case didn't know may need serviceprovider boot laravel on package.

i suggest read https://laravel.com/docs/5.2/packages if need development structure/functionality.


Comments