I have a countif query in mysql and I would like to show the table on my html. I'm currently using laravel 6.0 framework.
Here is the picture of the table i want to show:
Here is my code in html:
Here is my code in the controller:
There should be numerous errors with index
function in your controller. Specifically with how you are trying to assign $count
a value. Read these: Eloquent Methods all() vs get() , Eloquent Selects , Eloquent Ordering, Grouping, Limit and Offset , Eloquent Where .
Laravel has an excellent documentation, if you were to follow it - working with Laravel would become much easier.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.