jeudi 26 mai 2016

how can i view an image form public folder with route parameter?

when i use this route

Route::get('view',function(){

return view('product_view');

});

its view the image from the public folder

but when in use this

Route::get('view/{id}',function($id){

return view('product_view');

});

it does not view the image.

product_view page remain same for each

@extends('layouts.app')

@section('content')

img src="1.jpg"

@endsection



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/249MO9T
via IFTTT

Aucun commentaire:

Enregistrer un commentaire