Answers for "get the total count of items in a table in laravel"

PHP
7

get count laravel

$count = Model::where('status','=','1')->count();
Posted by: Guest on May-12-2020
1

laravel count array

$expDate = Carbon::now()->subDays(15));
Table::whereDate('exp_date', '<',$expDate);
Posted by: Guest on August-14-2021

Code answers related to "get the total count of items in a table in laravel"

Browse Popular Code Answers by Language