skip to Main Content

Laravel Eloquent with MVC principles – PHP

I am quite new to laravel. Using Laravel 8. When saving data I have seen below method in many examples. In the controller $emp = new Employee(); $emp->emp_name = $request->emp_name; $emp->emp_no = $request->emp_no; $emp->email = $request->email; $emp->save(); My doubt is…

VIEW QUESTION

Not equal to function is not working in Laravel

Not equal to function is not working in below code when I am running it through Postman, but the same query is giving output in MySQL. Laravel Eloquent Code - Invoice::where('invoices.centre_code', $userInfo->centre_code) ->where("invoices.itemTotalPrice","<>", "invoices.paymentCollected") // this line is not working…

VIEW QUESTION
Back To Top
Search