Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
検証が失敗した場合、古い入力を渡してフォームに再度入力する方法がわかりません。
つまり、Validator クラスを使用し、withInput() メソッドで失敗した後にリダイレクトするときにデータを渡す方法は知っていますが、laravel 5 で提供されているフォーム リクエストの使用方法を学習しようとしています。
$username = Request::old('username');
またはビューで:
{{ old('username') }}
続きを読む: http://laravel.com/docs/5.0/requests#old-input