app/Http/Requests/Admin/UpdateProductsRequest.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 [
            'category.*' => 'exists:product_categories,id',
            'tag.*' => 'exists:product_tags,id',
            'photo1' => 'nullable|mimes:png,jpg,jpeg,gif',
        ];
    }
public function rules ( ) { return [ 'category.*' => 'exists:product_categories,id' , 'tag.*' => 'exists:product_tags,id' , 'photo1' => 'nullable|mimes:png,jpg,jpeg,gif' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .