This commit is contained in:
denisdulici
2018-05-09 17:27:33 +03:00
parent 66f16e2f74
commit cec708a4fe
2 changed files with 9 additions and 9 deletions

View File

@ -14,11 +14,16 @@ class Controller extends BaseController
/**
* Instantiate a new controller instance.
*
* @param Route $route
*/
public function __construct(Route $route)
public function __construct()
{
// No need to check for permission in console
if (app()->runningInConsole()) {
return;
}
$route = app(Route::class);
// Get the controller array
$arr = array_reverse(explode('\\', explode('@', $route->getAction()['uses'])[0]));