Show one single post after click

I’m using laravel 8 jetstream with livewire. I have a posts component with show a list of posts, I would like that on click to open a new page with only that post . I have mount() the id of that post and create a route for it but it not working. can someone post a simple example please

web.php

Route::get('post/{post}', ShowPost::class)->name('post.show');

Post Component

// ....
public $post;
public function mount(Post $post)
{
  $this->post = $post;
}

// ....
1 Like

perfect it’s working

That’s Great @callofcash