Skip to content

Commit

Permalink
Remove dds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdordoy committed Oct 22, 2024
1 parent 285559f commit 2637639
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@


Rules
- i dont like the idea of a over img so i do that at the end of process or make something cool. Maybe the sidebar just works both (ahhhhh it see childen ic are about)!!
- i dont like the idea of a over img so i do that at the end of process or make something cool. Maybe the sidebar just works both (ahhhhh it see childen ic are about)!!

TODO:
- add Zip validation when this: orkhanahmadov/laravel-zip-validator can use laravel 11
3 changes: 2 additions & 1 deletion src/Actions/Documents/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Support\Facades\Validator;
use JamesDordoy\HTMLable\Models\Document;
use JamesDordoy\HTMLable\Rules\Documents\CreateDocument;
use Illuminate\Validation\ValidationException;

class Create
{
Expand All @@ -28,7 +29,7 @@ protected function validate(array $data): array
$validator = Validator::make($data, app(CreateDocument::class)());

if ($validator->fails()) {
dd($validator);
throw new ValidationException($validator);
}

return $validator->validated();
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/Documents/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace JamesDordoy\HTMLable\Actions\Documents;

use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use JamesDordoy\HTMLable\Models\Document;

class Update
Expand Down Expand Up @@ -31,7 +32,7 @@ protected function validate(array $data): array
]);

if ($validator->fails()) {
dd($validator);
throw new ValidationException($validator);
}

return $validator->validated();
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/Elements/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace JamesDordoy\HTMLable\Actions\Elements;

use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use JamesDordoy\HTMLable\Models\Document;
use JamesDordoy\HTMLable\Models\Element;
use JamesDordoy\HTMLable\Rules\Documents\CreateElement;
Expand All @@ -28,7 +29,7 @@ protected function validate(array $data): array
$validator = Validator::make($data, app(CreateElement::class)());

if ($validator->fails()) {
dd($validator);
throw new ValidationException($validator);
}

return $validator->validated();
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/Values/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace JamesDordoy\HTMLable\Actions\Values;

use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use JamesDordoy\HTMLable\Models\Element;
use JamesDordoy\HTMLable\Models\Value;

Expand Down Expand Up @@ -30,7 +31,7 @@ protected function validate(array $data): array
]);

if ($validator->fails()) {
dd($validator);
throw new ValidationException($validator);
}

return $validator->validated();
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/Values/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace JamesDordoy\HTMLable\Actions\Documents;

use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use JamesDordoy\HTMLable\Models\Document;

class Update
Expand Down Expand Up @@ -31,7 +32,7 @@ protected function validate(array $data): array
]);

if ($validator->fails()) {
dd($validator);
throw new ValidationException($validator);
}

return $validator->validated();
Expand Down

0 comments on commit 2637639

Please sign in to comment.