Laravel installer is an independent plugin to generate an installation wizard for your laravel application.
Enter the root folder of your project in terminal and run:
composer require postboxcms/laravelinstaller
To publish the assets run the following command:
php artisan vendor:publish --tag=laravelinstaller
Edit config/app.php
and add the following line under 'providers'
array:
Postbox\LaravelInstaller\LaravelInstallerProvider::class
Edit app/Http/Kernel.php
and add the following to $middleware
array:
\Postbox\LaravelInstaller\Middleware\VerifyInstallation::class
To avoid the string length error while migrations being re-run edit app/Providers/AppServiceProvider.php
and make a few changes to it.
- On top of the file add the
Schema
facade:use Illuminate\Support\Facades\Schema;
- 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.
Laravel installer was created by Sanket Raut as an aid to help generate an installation wizard for laravel apps