mardi 16 octobre 2018

i can not show image from database to user part (page) laravel

I am new with laravel. I am tried to show an image from database to the user page with laravel. and also with public folder to storage folder. code, this is the function for getting data from database

         public function index()
           {   
                $posts = post::all();
                 return view('admin.post.show', compact('posts'));
            }

and this is for get image from

 @section('bg-img',Storage::disk('local')->url('$posts->image'))

my table name is'posts'

after that when i reload my page, i saw my image filed is blank but i do not get any error.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire