Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel keep old input


You can access the last inputs like so:

$username = Request::old('username');

<input type="text" ... value="{{ old('username') }}" ... >.

As described in the docs it is more convenient in a blade view.

Check: https://laravel.com/docs/5.3/requests#old-input
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #input
ADD COMMENT
Topic
Name
2+7 =