array_get deprecated

This commit is contained in:
Deon George
2020-01-11 22:05:05 +11:00
parent c941fcb148
commit 34c0380c99
6 changed files with 12 additions and 10 deletions

View File

@@ -40,7 +40,7 @@
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
</tr>
<tr>
<th>Reference:</th><td><input type="text" name="notes" class="" value="{{ array_get($o->order_info,'order_reference','') }}"></td>
<th>Reference:</th><td><input type="text" name="notes" class="" value="{{ \Illuminate\Support\Arr::get($o->order_info,'order_reference','') }}"></td>
</tr>
</table>
</div>

View File

@@ -40,7 +40,7 @@
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
</tr>
<tr>
<th>Reference:</th><td>{{ array_get($o->order_info,'order_reference','') }}</td>
<th>Reference:</th><td>{{ \Illuminate\Support\Arr::get($o->order_info,'order_reference','') }}</td>
</tr>
</table>
</div>

View File

@@ -37,7 +37,7 @@
@foreach ($so->top_menu as $item => $menu)
<li class="dropdown {{ Request::is($menu['url']) ? 'active' : '' }}">
@if (! array_get($menu,'children'))
@if (! \Illuminate\Support\Arr::get($menu,'children'))
<a {{ Request::is($menu['url']) ? 'class=active' : '' }} href="{{ url($menu['url']) }}">{{ $menu['name'] }}</a>
@else
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">{{ $item }}</a>