Looking to hire Laravel developers? Try LaraJobs

laravelinstaller maintained by postboxcms

Description
An installation wizard for Laravel apps
Author
Last update
2021/08/01 08:01 (dev-main)
License
Links
Downloads
22

Comments
comments powered by Disqus

Laravel Installer

Laravel installer is an independent plugin to generate an installation wizard for your laravel application.

Installation

Download the package

Enter the root folder of your project in terminal and run:

composer require postboxcms/laravelinstaller

Publish assets

To publish the assets run the following command:

php artisan vendor:publish --tag=laravelinstaller

Add service provider

Edit config/app.php and add the following line under 'providers' array:

Postbox\LaravelInstaller\LaravelInstallerProvider::class

Add middleware

Edit app/Http/Kernel.php and add the following to $middleware array:

\Postbox\LaravelInstaller\Middleware\VerifyInstallation::class

Laravel preconfiguration

To avoid the string length error while migrations being re-run edit app/Providers/AppServiceProvider.php and make a few changes to it.

  1. On top of the file add the Schema facade:
    use Illuminate\Support\Facades\Schema;
    
  2. In the boot() function add the following line:
    Schema::defaultStringLength(191); 
    

Now run your application using php artisan serve or through the url and enjoy.

Credits

Laravel installer was created by Sanket Raut as an aid to help generate an installation wizard for laravel apps