mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 17:50:22 -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="row">
|
||||
@foreach($columns as $column)
|
||||
@set('col_name', $column['name'])
|
||||
@set('value', empty($col_name) ? '' : $item->$col_name)
|
||||
@set('value', empty($col_name) ? '' : $item[$column['name']])
|
||||
|
||||
@if($column['type'] == 'hidden')
|
||||
<input class="text-input" type="hidden" name="{{ $column['name'] }}" id="{{ $column['name'] }}" value="{{ $value }}" />
|
||||
|
|
Loading…
Reference in a new issue