user()->is_admin; }); Validator::includeUnvalidatedArrayKeys(); Gate::define('viewPulse', function (User $user) { return $user->is_admin === 1; }); // Model::preventLazyLoading(true); } /** * Register any application services. * * @return void */ public function register() { // } }