Laravel old() not working

后端 未结 1 979
囚心锁ツ
囚心锁ツ 2021-02-20 12:35
{!! Form::open(array(\'route\' => \'posts.store\', \'data-parsley-validate\' => \'\')) !!}
    {{ Form::label(\'title\', \'Title:\') }}
    {{ Form::text(\'title\'         


        
1条回答
  •  失恋的感觉
    2021-02-20 13:15

    Use ->withInput() to go back with data

        return redirect()->back()->withInput()->withErrors('Add atleast one image in the post.');
    

    Check in docs : Old inputs in https://laravel.com/docs/master/requests

    0 讨论(0)
提交回复
热议问题