Laravel: textarea does not refill when using Input::old

textarea does not have a value attribute. Values in textarea should be inside <textarea></textarea>, so in your case:

<textarea id="message" name = "content" rows="10" cols="50" onKeyPress class="form-control">
{{{ Input::old('content') }}}
</textarea>

Just figured it out, put the old value in between the brackets as below

<textarea name="message">{{ old('message') }}</textarea>


This is another way to do the same but with the Forms component from laravel:

{{ Form::textarea('content',Input::old('content'),array('id' => 'message')) }}

Tags:

Laravel