// check if request not from cli
if ('cli' != php_sapi_name()) {
$this->authorize('is_admin');
}
from a console is 'cli'...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community