added unless structure to blade.
This commit is contained in:
@@ -105,6 +105,19 @@ Blade makes writing your views pure bliss. To create a blade view, simply name y
|
||||
There are not posts in the array!
|
||||
@endforelse
|
||||
|
||||
<a name="blade-unless"></a>
|
||||
#### The "unless" control structure:
|
||||
|
||||
@unless(Auth::check())
|
||||
{{ HTML::link_to_route('login', 'Login'); }}
|
||||
@endunless
|
||||
|
||||
// Equivalent...
|
||||
|
||||
<?php if ( ! Auth::check()): ?>
|
||||
...
|
||||
<?php endif; ?>
|
||||
|
||||
<a name="blade-layouts"></a>
|
||||
## Blade Layouts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user