original_string: protected function rulesForProfile() : array
      {
          return [
              'first_name' => 'required',
              'last_name' => 'required',
              'gender' => 'required',
              'email' => [
                  Rule::unique('users')->ignore(Auth::user()->id),
                  'required',
                  'email',
              ],
              'nickname' => [
                  Rule::unique('users')->ignore(Auth::user()->nickname, 'nickname'),
                  'required',
                  'max:20',
              ],
              'pictures.storing' => [
                  Rule::dimensions()->maxWidth(500)->maxHeight(500),
                  'mimes:jpeg,png,jpg',
                  'image',
              ],
          ];
      }
code: protected function rulesForProfile() : array
      {
          return [
              'first_name' => 'required',
              'last_name' => 'required',
              'gender' => 'required',
              'email' => [
                  Rule::unique('users')->ignore(Auth::user()->id),
                  'required',
                  'email',
              ],
              'nickname' => [
                  Rule::unique('users')->ignore(Auth::user()->nickname, 'nickname'),
                  'required',
                  'max:20',
              ],
              'pictures.storing' => [
                  Rule::dimensions()->maxWidth(500)->maxHeight(500),
                  'mimes:jpeg,png,jpg',
                  'image',
              ],
          ];
      }
code_tokens: protected function rulesForProfile ( ) : array { return [ 'first_name' => 'required' , 'last_name' => 'required' , 'gender' => 'required' , 'email' => [ Rule :: unique ( 'users' ) -> ignore ( Auth :: user ( ) -> id ) , 'required' , 'email' , ] , 'nickname' => [ Rule :: unique ( 'users' ) -> ignore ( Auth :: user ( ) -> nickname , 'nickname' ) , 'required' , 'max:20' , ] , 'pictures.storing' => [ Rule :: dimensions ( ) -> maxWidth ( 500 ) -> maxHeight ( 500 ) , 'mimes:jpeg,png,jpg' , 'image' , ] , ] ; }
docstring: Returns validation rules for the form profile.
  
  @return array
docstring_tokens: Returns validation rules for the form profile .