Answer the question
In order to leave comments, you need to log in
Displaying information, binding with, or ' ' in laravel 6?
Hello!
On Laravel 5.6, I always used bundles and their output:
@forelse($с->orders as $o)
{{$o->order_customer->name or 'Пусто!'}}
@empty
@endforelse
$o->order_customer->name
gives null
it, it naturally works or ''
and its value is displayed $o->order_customer->name
- empty - it shows "1", stupid number 1 Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question