vi-kon / laravel-support
Support package for Laravel 5.1
Installs: 306
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vi-kon/laravel-support
Requires
- php: >=5.5.9
- illuminate/database: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2021-03-05 23:26:59 UTC
README
Composer
There are multiple way to install package via composer
-
To your
composer.json
file add following lines:// to your "require" object "vi-kon/laravel-support": "^1.0"
-
Or run following command in project root:
composer require vi-kon/laravel-auth
This command will add above line in your composer.json file and download required package files.
Setup
In your Laravel project add following lines to config/app.php
:
// to providers array \ViKon\Support\SupportServiceProvider::class,
In app\Http\Kernel.php
file add following lines to $middleware
array:
// to $middleware array \Illuminate\View\Middleware\ShareErrorsFromSession::class, // Add after \Illuminate\View\Middleware\ShareErrorsFromSession::class, \ViKon\Support\Middleware\View\ShareSuccessesFromSession::class,
Note: In Laravel 5.2 add these lines instead of $middleware
array
to array marked with web
key inside $middlewareGroups
array.
[Back to top][top]