app/Http/Requests/ProfileRequest.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()
    {
        return [
            'rankcode' => ['required', 'min:3'],
            'firstname' => ['required', 'min:3'],
            'middlename' => ['required'],
            'lastname' => ['required', 'min:3'],
            'email' => ['required', 'email', Rule::unique((new User)->getTable())->ignore(auth()->id())],
        ];
    }
public function rules ( ) { return [ 'rankcode' => [ 'required' , 'min:3' ] , 'firstname' => [ 'required' , 'min:3' ] , 'middlename' => [ 'required' ] , 'lastname' => [ 'required' , 'min:3' ] , 'email' => [ 'required' , 'email' , Rule :: unique ( ( new User ) -> getTable ( ) ) -> ignore ( auth ( ) -> id ( ) ) ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .