2017 © Pedro Peláez
 

library laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

image

kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  • Wednesday, May 25, 2016
  • by kargolsan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Laravel Install Wizard

A Laravel package to help you build a web setup wizard for your application, (*1)

laravel-install-wizard, (*2)

Setup

Add the package to your project

composer require kargolsan/laravel-install-wizard

Declare the service provider and the alias

'providers' => [
    /**
    * Other Service Providers
    */
    Collective\Html\HtmlServiceProvider::class, // for laravelcollective/html require
    KarGolSan\InstallWizard\ServiceProvider::class,
],

'aliases' => [
    /**
    * Other aliases
    */
    'Form' => Collective\Html\FormFacade::class, // for laravelcollective/html require
    'Html' => Collective\Html\HtmlFacade::class, // for laravelcollective/html require
    'InstallWizard' => KarGolSan\InstallWizard\Facades\InstallWizard::class,
],

Declare the required middleware

Add the following line to your app/Http/Kernel.php file:, (*3)

protected $middlewareGroups = [
    // ...
    // Other Middleware
    // ...
    'install_wizard' => [
        \Illuminate\Session\Middleware\StartSession::class,
        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
        'install_wizard.initializer',
    ]
];

protected $routeMiddleware = [
    // ...
    // Other Middleware
    // ...
    'install_wizard.initializer' => \KarGolSan\InstallWizard\Middleware\InstallWizardInitializer::class,
    'install_wizard.trigger'     => \KarGolSan\InstallWizard\Middleware\InstallWizardTrigger::class,
];

Enable the middleware to launch the wizard if necessary

If you want to launch the install wizard automatically when required, you need to add the SetupWizardTrigger middleware to the routes you wish to protect. For instance, if you have a route group to show an administration panel, you could do it there:, (*4)

Route::group([
    'prefix'     => 'admin', 
    'middleware' => 'install_wizard.trigger'
], function () {
        // ...
});

This way, the setup wizard will only be triggered when trying to access the administration panel., (*5)

The Versions

25/05 2016

dev-job

dev-job https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

25/05 2016

dev-master

9999999-dev https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

25/05 2016

dev-dev

dev-dev https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

25/05 2016

v0.2.0

0.2.0.0 https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

25/05 2016

v0.0-alpha

0.0.0.0-alpha https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

25/05 2016

v0.1-alpha

0.1.0.0-alpha https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup

24/05 2016

dev-home

dev-home https://github.com/kargolsan/laravel-install-wizard

Creator for project in Laravel 5.2. Wizard installer for application of laravel.

  Sources   Download

MIT

The Requires

 

by Karol Golec

laravel installer setup