make controller laravel history open link code example
Example: make controller laravel history open link
$post = App\Models\Post::find(1);
echo url("/posts/{$post->id}");
// http://example.com/posts/1
$post = App\Models\Post::find(1);
echo url("/posts/{$post->id}");
// http://example.com/posts/1