Asked by: Kamran Ijaz
%7Bid%7D
Showing this except real id
http://localhost/laravel/public/Images/%7Bid%7D/show
but when i change this %7Bid%7D
in to number it also work but now shows automatically.
Routes: Route::get('Images/{id}/show','ImageController@index');
Answers
Answered by: bhill77 at 2017-07-11 10:04AM
I think you are wrong when calling route.
ex: if you want to make route to show image with id 2 in your view you must do something like:
<a href="{{ route('images.show', $image->id)}}">link</a>
or
<a href="{{ url('Images/'.$image->id.'/show') }}">link</a>
No comments:
Post a Comment