hasPermissionTo('lihat log aktiviti'); } /** * Determine whether the user can view the model. */ public function view($user, ?Activity $activity = null): bool { return $user->hasPermissionTo('lihat log aktiviti'); } }