bagaimana mendapatkan item terakhir di foreach di laravel

$loop->last

@foreach ($colors as $k => $v)
     @if($loop->last)
         // at last loop, code here
     @endif
@endforeach
Ugly Unicorn