membuat pengontrol riwayat laravel terbuka

$post = App\Models\Post::find(1);

echo url("/posts/{$post->id}");

// http://example.com/posts/1
Eager Eel