I have a resource route generated by Artisan command as
Route::resource('posts','PostsController');
the URI of this route is posts/{post}/edit which require a dynamic value in the middle. But because I'm using the url() method to link all of my routs I am forced to nest the template expression as:
<a href="{{url('/posts/{{$show->id}}/edit')}}" class="btn btn-sm">Edit</a>
This is giving me an error: NotFoundHttpException because it couldn't get the {{$show->id}} part. How can I fix this?