Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel blade if links exists

/*This works perfectly. Check if $products is an instance of 
IlluminatePaginationLengthAwarePaginator then display the pagination links. */

@if($products instanceof IlluminatePaginationLengthAwarePaginator )

   {{$products->links()}}

@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #blade #links #exists
ADD COMMENT
Topic
Name
4+6 =