app/Http/Requests/UpdatePricingRequest.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|unique:mysql.sch_plans,name,'.$this->pricing->id,
            'pricing_description',
            'cost' => 'required|numeric',
            'pricing_points' => 'required',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|unique:mysql.sch_plans,name,' . $ this -> pricing -> id , 'pricing_description' , 'cost' => 'required|numeric' , 'pricing_points' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .