MyBB Community Forums

Full Version: laravel and the public folder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've gotten quite use to throwing the php scripts I use into the public directory and installing it from there.  But a lot of php frameworks ask you to keep the laravel code a level higher than the public folder.  


For scripts like MyBB that are redistributed from a download and supposed to be easy to install, what is the plan for this?

Would you remove the public folder and just keep the framework in the same level?  Would you setup an htaccess that automatically forwarded the visible root to be the public directory? Would you make the users set that up how they want themeselves?  Or something else?
We'll likely modify the paths.php file and have everything on one level, with .htaccess rules to block access.

XenForo do something similar with how they include Zend Framework in their package. We'd likely have a structure similar to the following:

index.php <-- Main entry point
paths.php <-- Path configuration file
includes
- app/ <-- app specific stuff
vendor/ <-- vendor folder managed by Composer

We might also have a plugins folder too, or we may use Composer for that. These are the kind of things we're still figuring out Toungue