Package Data | |
---|---|
Maintainer Username: | mrofi |
Maintainer Contact: | mokh.rofiudin@gmail.com (Mokhamad Rofiudin) |
Package Create Date: | 2016-07-01 |
Package Last Update: | 2016-10-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-21 03:01:00 |
Package Statistics | |
---|---|
Total Downloads: | 757 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
It's not recommended to deploy your app in share hosting, unless you know what you do.
we create a index.php to base directory, so you can access your app without /public and make overriding how laravel do with public assets. Make sure you use asset() helper to include your asset files in app.
composer require mrofi/laravel-shared-hosting-package "dev-master"
add this service provider in your config/app.php file :
...
Mrofi\LaravelSharedHostingPackage\LaravelSharedHostingPackageServiceProvider::class,
...
then, do some magic :
php artisan vendor:publish --provider="Mrofi\LaravelSharedHostingPackage\LaravelSharedHostingPackageServiceProvider"
Please read how to configure server to make your server secure. Since you move your index.php to base path directory you have to hide other folders and credentails file, like : file .env, folder app, migrations, resources, etc from direct accessing by user browser.
This pacakage includes .htaccess file that works for apache web server only. If you use other servers, ie : nginx. you can googling to protects your files. https://www.google.co.id/search?q=nginx+deny+all+files+except+index.php