app/Http/Requests/GigRequestValidation.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',
            'category'      => 'required',
            'sale_price'    => 'required|numeric',
            'file'          => 'required|image',
            'is_local'      => 'required|boolean',
            'delivery_time' => 'required|numeric'
        ];
    }
public function rules ( ) { return [ 'title' => 'required' , 'category' => 'required' , 'sale_price' => 'required|numeric' , 'file' => 'required|image' , 'is_local' => 'required|boolean' , 'delivery_time' => 'required|numeric' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .