I have tried installing sentry in laravel 5 but it doesn\'t work. I would like to know if anyone has done it and how to do it.
Update: I used the instructions for La
Try Sentinel: https://github.com/rydurham/Sentinel
add to composer
composer require rydurham/sentinel
In config/app.php
'providers' => array(
...
'Sentinel\SentinelServiceProvider',
...
)
In app/Http/Kernel.php
protected $routeMiddleware = [
// ..
'sentry.auth' => 'Sentinel\Middleware\SentryAuth',
'sentry.admin' => 'Sentinel\Middleware\SentryAdminAccess',
];
then
publish config:
php artisan sentinel:publish
run migrations:
php artisan migrate
run seeder:
php artisan db:seed --class=SentinelDatabaseSeeder
add home route in app/routes.php
Route::get('/', array('as' => 'home', function()
{
return View::make('home');
}));
all done, go to myapp.dev/login