mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 16:51:25 -05:00
Implement another solution to the PHP7 issue with variables referencing eloquent columns
This commit is contained in:
parent
bfd4ddf091
commit
89bbb153b2
1 changed files with 1 additions and 2 deletions
|
@ -19,8 +19,7 @@
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach($columns as $column)
|
@foreach($columns as $column)
|
||||||
@set('col_name', $column['name'])
|
@set('value', empty($col_name) ? '' : $item[$column['name']])
|
||||||
@set('value', empty($col_name) ? '' : $item->$col_name)
|
|
||||||
|
|
||||||
@if($column['type'] == 'hidden')
|
@if($column['type'] == 'hidden')
|
||||||
<input class="text-input" type="hidden" name="{{ $column['name'] }}" id="{{ $column['name'] }}" value="{{ $value }}" />
|
<input class="text-input" type="hidden" name="{{ $column['name'] }}" id="{{ $column['name'] }}" value="{{ $value }}" />
|
||||||
|
|
Loading…
Reference in a new issue