php - Laravel Blade how to use if statement for null or empty -
in blade templating engine, how use "if" determine null or empty?
{{{ auth::user()->age }}}
you can bellow
@if (empty(auth::user()->age)) // if code @else // else code @endif
Comments
Post a Comment