Support the ongoing development of Laravel.io →
Requests Views Blade
Last updated 2 years ago.
0

Simply check if the requests variable exists or not.

@if (empty($requests) || !$requests->count()

@else

@endif
0

View composers should work for this:

http://laravel.com/docs/5.1/views#view-composers

0

View composers or Blade @Inject seems to be the way to go.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

RemedyNony remedynony Joined 13 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.