add to url anchor tag laravel with variable 1

add to url anchor tag laravel with variable

{{ url('projects/display/'.$projects->id) }}

Here is what the above code is Doing:
1. We are using the url() helper to generate the URL to the projects/display/{id} route.
2. We are passing the $projects->id variable to the route.
3. We are using the HTML anchor tag to link to the URL.
4. We are using the $projects->title variable to display the title of the project.

Now, let’s go ahead and create the projects/display/{id} route.

Similar Posts