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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -