Ignore a route for access checking in Laravel 5 using Entrust Package

I’m using Entrust Laravel Package and it is working fine but there’s a problem.

I want to show a login form to admin using the below controller

Route::get('/admin/login', array('as' => 'admin_login', 'uses' => 'AdminAdminAccessController@getLogin'));

How do I tell Entrust to ‘disable’ access control for some routes like “admin/login”?

Entrust::routeNeedsRole('admin/*', 'owner',dd(
    "Access Denied!"
));


Source: php

Leave a Reply