Skip to content

Commit

Permalink
remove dd
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Jan 17, 2024
1 parent 38b0482 commit ca714ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/Concerns/HasSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function fillSlugs(): void
locales()->each(function () {
$this->slug = Str::slug($this->slug);

if (! $this->slug || ! $this->slugAlreadyUsed($this->slug)) {
if (! $this->slug || $this->slugAlreadyUsed($this->slug)) {
$this->slug = $this->generateSlug();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,4 @@ protected function getTableActions(): array
DeactivateOrganizationAction::make(),
];
}

}
1 change: 0 additions & 1 deletion app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function store(RegistrationRequest $request): RedirectResponse
if ($user->hasRole(UserRole::ADMIN)) {
$attributes['ngo']['status'] = OrganizationStatus::draft;
$attributes['ngo']['slug'] = Str::slug($attributes['ngo']['name']);
dd(collect($attributes['ngo'])->toJson());

$organization = Organization::create($attributes['ngo']);

Expand Down

0 comments on commit ca714ab

Please sign in to comment.