php - question mark in the url with laravel

Solution:
Because the second argument inroute('blogs_path', $blog->id)
is parameter.
try this:
Routes:
Route::name('blogs_path')->get('/blogs/{id}/','BlogController@index');
Controller:
public function index(Request $request, $id)
{
...
}
Answer
Solution:
You made a mistake in the routing of the template Blade.
{{ route('blogs_path1', ['id' => $blog->id]) }}
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: undefined array key php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.