Hello,
The url helper may be used to generate arbitrary URLs for your application.
The generated URL will automatically use the scheme (HTTP or HTTPS) and host from the current request:
$post = App\Post::find(1);
echo url(“/posts/{$post->id}”);
// http://example.com/posts/1
Thank you!!