To pre-populate form field, we can add \'value\' to form field in create.blade.php:
{{ Form::text(\'title\', \'Some default title\') }}
Is ther
If you want to do this conditionally, an alternative method of solving this could be to perform a check instead. If this check passes, set the default (as is done below with $nom
as an example). Otherwise, leave it empty by setting it to null
explicitly.
{{ Form::text('title', (isset($nom)) ? $nom : null) }}