*/ protected $policies = [ // ]; /** * Register any authentication / authorization services. */ public function boot(): void { Gate::define('access-channel', function(User $user, TraceChannel $channel) { return $user->hasChannelPermission($channel); }); } }