Laravel Sentinel and Laracollective installation part-1
Laravel install: Composer create
composer create-project --prefer-dist laravel/laravel blog
Laracollective installation:
composer require "laravelcollective/html":"^5.4.0"
Next, add your new provider to the providers
array of config/app.php
: 'providers' => [
// ...
Collective\Html\HtmlServiceProvider::class,
// ...
],
Finally, add two class aliases to the
aliases
array of config/app.php
: 'aliases' => [
// ...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
// ...
],
If you have installed Composer globally run the following:
composer require cartalyst/sentinel "2.0.*"
After installing the package, open your Laravel config file located at config/app.php
and add the following lines.
In the $providers
array add the following service provider for this package.
Cartalyst\Sentinel\Laravel\SentinelServiceProvider::class,
In the $aliases
array add the following facades for this package.
'Activation' => Cartalyst\Sentinel\Laravel\Facades\Activation::class,
'Reminder' => Cartalyst\Sentinel\Laravel\Facades\Reminder::class,
'Sentinel' => Cartalyst\Sentinel\Laravel\Facades\Sentinel::class,
Run the following command to publish the migrations and config file.
php artisan vendor:publish --provider="Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
No comments