Answers for "count elements in array laravel blade"

PHP
0

laravel blade get array count in Blade

You can use the php count function to count the length of an array.

http://php.net/manual/en/function.count.php
EXAMPLE:

@if (count($array) > 0)
    {{-- expr --}}
@endif
Posted by: Guest on January-07-2022
1

laravel count array

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

Browse Popular Code Answers by Language