Skip to content

Commit

Permalink
fix: form request validate
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy8 committed Oct 13, 2020
1 parent 3166197 commit 16b378d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/ContentController.php
Expand Up @@ -318,7 +318,7 @@ protected function validateEntityRequest()
$entityRequestClass = '\\App\\Http\\Requests\\Admin\\Entity\\' .
Str::ucfirst(Str::singular($this->entity->table_name)) . 'Request';
if (class_exists($entityRequestClass)) {
$entityRequestClass::capture()->setContainer(app())->setRedirector(app()->make('redirect'))->validate();
$entityRequestClass::capture()->setContainer(app())->setRedirector(app()->make('redirect'))->validateResolved();
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/Admin/Entity/ArticleRequest.php
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Requests\Admin;
namespace App\Http\Requests\Admin\Entity;

use Illuminate\Foundation\Http\FormRequest;
use App\Model\Admin\Entity;
Expand Down

0 comments on commit 16b378d

Please sign in to comment.