postboxcms/laravelinstaller

An installation wizard for Laravel apps

v1.0 2021-05-04 14:59 UTC

This package is auto-updated.

Last update: 2024-04-29 04:53:30 UTC


README

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