Laravel 5.0 folder structure: public vs. resources

前端 未结 4 1858
灰色年华
灰色年华 2020-12-13 08:58

In Laravel 4.2, I used public folder to store all my CSS, JS, images and uploads. Currently, there\'s a new resources folder with a

4条回答
  •  旧巷少年郎
    2020-12-13 09:20

    You can think of them as being separate folders for development and production. In resources you have all your development files that'll not ship off into production (SASS, Coffeescript, Babel, Jade, etc). But when they're compiled (or piped through something like Gulp) you can configure them to output to public, the production folder.

提交回复
热议问题