Skip to content

mrofi/laravel-shared-hosting-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Shared Host Package

This simple package will help you to deploy laravel framework in shared hosting

Strong Warning

It's not recommended to deploy your app in share hosting, unless you know what you do.

How It Works

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.

How To

    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"

Security

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

About

Make Laravel works in Shared Host

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages