'like', ]; /** * @return string */ public function model(): string { return UserField::class; } /** * Return whether or not this field is in use by a value * * @param $id */ public function isInUse($id): bool { return UserFieldValue::where(['user_field_id' => $id])->exists(); } }