better image uploading & user roles
Some checks failed
Docker / build (push) Has been cancelled

This commit is contained in:
yuriko 🦊 2025-08-09 23:01:27 -04:00
parent 21e59d775a
commit f60ae41bf6
26 changed files with 741 additions and 70 deletions

View file

@ -8,6 +8,7 @@ use Livewire\Component;
class PostFeature extends Component
{
public ?Post $post = null;
public $tags = null;
public function mount()
{
@ -18,6 +19,7 @@ class PostFeature extends Component
['$sample' => ['size' => 1]]
]);
})->first();
$this->tags = $this->post->tags()->take(5)->get();
}
public function placeholder()
@ -36,7 +38,6 @@ HTML;
{
if ($this->post == null)
{
$href = route('posts.home');
return view('livewire.post-feature-empty');
}
return view('livewire.post-feature');