Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Blade tips
Instead of if and isset, directly isset Laravel v5.4
// if (isset($aVar))
// else
@foreach ($users as $user)
@if ($loop->first)
This is the first iteration.
@if ($loop->last)
This is the last iteration.
<p>This is user {{ $user->id }}</p>

This comment has been minimized.

Copy link
Owner Author

arturmamedov commented May 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.