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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire