Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if pagination is empty

@unless (count($items))
    <p>Unfortunately, no items were returned.</p>
@endunless

or you can use something like:

if($items->isNotEmpty()){ 
	//your code
}

if($items->isEmpty()){ 
	//your code
}
Source by laraveltuts.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #pagination #empty
ADD COMMENT
Topic
Name
3+3 =