app/maguttiCms/Website/Requests/UpdateUserProfileRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules(): array
    {
        return  [
            'firstname' => ['required','max:255'],
            'lastname'  => ['required','max:255'],
            'email'     => ['required',
                            'max:255',
                            'email',
                            Rule::unique('users')->ignore(auth_user()->id)],
        ];
    }
public function rules ( ) : array { return [ 'firstname' => [ 'required' , 'max:255' ] , 'lastname' => [ 'required' , 'max:255' ] , 'email' => [ 'required' , 'max:255' , 'email' , Rule :: unique ( 'users' ) -> ignore ( auth_user ( ) -> id ) ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .