Answers for "empty eloquent"

PHP
2

laravel check if laravel query is empty

if ($result->first()) { } 
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
Posted by: Guest on May-18-2020
1

eloquent delete all where

Picture::where('filename', $filename)->delete();
Posted by: Guest on March-02-2021

Code answers related to "empty eloquent"

Browse Popular Code Answers by Language