|null $rules * @return array */ public function rules(?array $rules = null): array { $rules = $rules ?? User::getRules(); return collect($rules)->only([ 'external_id', 'email', 'username', 'password', 'language', 'timezone', ])->toArray(); } /** * Rename some fields to be more user-friendly. * * @return array */ public function attributes(): array { return [ 'external_id' => 'Third Party Identifier', ]; } }