Answers for "laravel how to check table is empty"

PHP
2

laravel check collection not empty

if ($mentor->first()) { } 
if (!$mentor->isEmpty()) { }
if ($mentor->count()) { }
if (count($mentor)) { }
if ($mentor->isNotEmpty()) { }
Posted by: Guest on December-21-2020
0

empty table in laravel

MyModel::truncate();
Posted by: Guest on June-19-2020

Code answers related to "laravel how to check table is empty"

Browse Popular Code Answers by Language