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',
            ],
        ];
    }
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',
            ],
        ];
    }
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' , ] , ] ; }
Returns validation rules for the form profile.

@return array
Returns validation rules for the form profile .