Created
February 21, 2015 02:06
-
-
Save nonlocalize/b7fac8437b193c0a8efd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
$this->newInvoice->insert($data, 'store'); | |
} | |
catch(ValidationException $e){ | |
$fixedInputs = Input::except($this->newInvoice->arrayInputs); | |
$arrayInputs = Input::only($this->newInvoice->arrayInputs); | |
$arrayInputs = Sort::getArrayInputs($arrayInputs); | |
return Redirect::back() | |
->withInput() | |
->withErrors($e->getErrors()) | |
->with([ | |
'Exception' => $e->getMessage(), | |
'arrayInputs' => $arrayInputs | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment