app/Http/Requests/StoreProductRequest.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',
            'price'=>'required|min:1000',
            'image'=>'required|max:2048|mimes:jpg,png',
            'images'=>'required',
            'info'=>'required',
            'description'=>'required',
        ];
    }
public function rules ( ) { return [ 'title' => 'required' , 'price' => 'required|min:1000' , 'image' => 'required|max:2048|mimes:jpg,png' , 'images' => 'required' , 'info' => 'required' , 'description' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//