Skip to content

Commit

Permalink
old(attr) on edit view.
Browse files Browse the repository at this point in the history
issue #26
  • Loading branch information
raphaelheitor authored Jun 28, 2016
1 parent 4bcd09f commit 8d897e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migrations/SyntaxBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ private function htmlField($column, $variable, $field, $type)

if($type == 'view-edit-content')
{
$value = '{{ $'.$variable.'->'.$column.' }}';
$value = '{{ old("'.$column.'") or $'.$variable.'->'.$column.' }}';
}

switch ($field['type']) {
Expand Down

0 comments on commit 8d897e0

Please sign in to comment.