how to use @mpty in laravel code example Example: collection empty laravel $isempty = $collection->isEmpty();