Laravel Shared Hosting Package
This package is auto-updated.
Last update: 2020-01-07 06:51:19 UTC
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