Question and answer is powered by AnsPress.io
I am new to laravel, so i don’t know how to check if two conditions are validate in controller
Try this code:
if(Customer::where('customer_id', 'LIKE', $request->customer_id)->where('package_id', 2)->count() > 1) { // ....... }
Hope you improve the answer.