app/Http/Requests/StoreClientRequest.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 [
            'name' => 'required|min:5|max:255',
            'email' => 'sometimes|required',
            'phone' => 'sometimes|required',
            'id_number' => 'sometimes|required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:5|max:255' , 'email' => 'sometimes|required' , 'phone' => 'sometimes|required' , 'id_number' => 'sometimes|required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .