hasPermissionTo('teams.files.view'); } public function store(User $user, Team $team) { return $user->hasPermissionTo('teams.files.upload') || $user->hasTeam($team); } public function download(User $user) { return $user->hasPermissionTo('teams.files.download'); } public function delete(User $user) { return $user->hasPermissionTo('teams.files.delete'); } }