samedi 2 janvier 2016

How to I move my javascript resources into a local folder?

I wrote a small app using laravel 5.2. I tried to keep all of my code into one folder located outside the app folder.

I created a folder called modules. Inside the modules folder I have a folder for vendor name. Then, inside the vendor folder, I have a module folder which contains of my code.

Here is a simple folder structure

app modules/vendor name/module name/...

I managed to move my controllers, views and a route file into the module name folder.

How would I move all of the javascripts located in the public folder into my module name folder so that everything inside the same folder?

Additionally, I have a of questions about the views being in the module folder. Is it a better practice to use $this->publishes() to publish views to the resources/views folder that comes with laravel? If so what is the benefits?

http://ift.tt/1mX2NK9



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire