Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
0dc5ef5f
Unverified
Commit
0dc5ef5f
authored
May 12, 2023
by
José Fernando Mendes da Costa
Committed by
GitHub
May 12, 2023
Browse files
Merge pull request #833 from jofernando/master
Revert "log da razão do request falhar"
parents
5b8ee959
1da829bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/StoreTrabalho.php
View file @
0dc5ef5f
...
...
@@ -7,7 +7,6 @@ use Illuminate\Validation\Rule;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Foundation\Http\FormRequest
;
use
Illuminate\Contracts\Validation\Validator
;
use
Illuminate\Support\Facades\Log
;
class
StoreTrabalho
extends
FormRequest
{
...
...
@@ -21,14 +20,6 @@ class StoreTrabalho extends FormRequest
return
Auth
::
check
();
}
protected
function
failedValidation
(
Validator
$validator
)
{
Log
::
info
(
print_r
(
$validator
,
true
));
throw
(
new
ValidationException
(
$validator
))
->
errorBag
(
$this
->
errorBag
)
->
redirectTo
(
$this
->
getRedirectUrl
());
}
protected
function
prepareForValidation
()
{
$func
=
function
(
$value
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment