File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public function postNew()
154
154
$ valid = $ this ->validateWithInput === true ? $ record ->isValid ( Input::all () ) : $ record ->isValid ();
155
155
156
156
if ( !$ valid )
157
- return Redirect::to ( $ this ->new_url )->with ( 'errors ' , $ record ->getErrors () );
157
+ return Redirect::to ( $ this ->new_url )->with ( 'errors ' , $ record ->getErrors () )-> withInput () ;
158
158
159
159
// Run the hydration method that populates anything else that is required / runs any other
160
160
// model interactions and save it.
@@ -177,7 +177,7 @@ public function postEdit( $id )
177
177
$ valid = $ this ->validateWithInput === true ? $ record ->isValid ( Input::all () ) : $ record ->isValid ();
178
178
179
179
if ( !$ valid )
180
- return Redirect::to ( $ this ->edit_url .$ id )->with ( 'errors ' , $ record ->getErrors () );
180
+ return Redirect::to ( $ this ->edit_url .$ id )->with ( 'errors ' , $ record ->getErrors () )-> withInput () ;
181
181
182
182
// Run the hydration method that populates anything else that is required / runs any other
183
183
// model interactions and save it.
You can’t perform that action at this time.
0 commit comments