app/Http/Requests/AddNewAndUpdateProduct.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',
            'cost' => 'required|numeric|min:4|',
            'price' => 'required|numeric|min:4|',
            'weight' => 'required|numeric|',
            'quantity' => 'required|numeric|between:1,1000000',
            'status' => 'required',
            'size' => 'required',
            'image' => 'image|max:5200',
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'cost' => 'required|numeric|min:4|' , 'price' => 'required|numeric|min:4|' , 'weight' => 'required|numeric|' , 'quantity' => 'required|numeric|between:1,1000000' , 'status' => 'required' , 'size' => 'required' , 'image' => 'image|max:5200' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .