To pre-populate form field, we can add \'value\' to form field in create.blade.php:
{{ Form::text(\'title\', \'Some default title\') }}
Is ther
Yes, let's consider the following example:
View:
{{ Form::text('title', $title) }}
Controller:
$title = 'Some default title';
if($article) {
$title = $article->title;
}
return View::make('user.login')->with('title', $title)
Then you will have a text-input with either Some default title
or the title from $article, if $article
isn't equal to false