'Empty directive fails on string
I have an object which contains a property called route, within the blade file I check if that property is empty:
@empty($chart->route)
<script>
alert('empty => ' + `{!! $chart->route !!}`)
</script>
@else
<script>
alert('not empty')
</script>
@endempty
The problem's that I get:
empty => admin.test
which is of course wrong. Is this a bug or I missed something?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
