app/Http/Requests/Store/StoreRequest.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 [
            'title'          =>'required|min:5|max:255|regex:/^([a-zA-Z]+)(\s[a-zA-Z]+)+$/|unique:stores,title',
            'phone_number'   =>'required|regex:/[0-9]{10}/',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|min:5|max:255|regex:/^([a-zA-Z]+)(\s[a-zA-Z]+)+$/|unique:stores,title' , 'phone_number' => 'required|regex:/[0-9]{10}/' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// 'business_email' =>'required|business_email|unique:stores', //'logo'           =>'required|logo:stores', //'address'        =>'required|address:stores', // 'location'       =>'required|location:stores',