Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Nov 19, 2024
1 parent 12556a7 commit 652b3e2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/Livewire/Questions/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,22 @@ public function store(Request $request): void
}
}

/**
* Render the component.
*/
public function render(): View
{
$user = new User;

if (filled($this->toId)) {
$user = $user->findOrFail($this->toId);
}

return view('livewire.questions.create', [
'user' => $user,
]);
}

/**
* Optimize the images.
*/
Expand Down Expand Up @@ -293,22 +309,6 @@ private function optimizeImage(string $path): void
$imagick->destroy();
}

/**
* Render the component.
*/
public function render(): View
{
$user = new User;

if (filled($this->toId)) {
$user = $user->findOrFail($this->toId);
}

return view('livewire.questions.create', [
'user' => $user,
]);
}

/**
* Handle the image deletes.
*/
Expand Down

0 comments on commit 652b3e2

Please sign in to comment.