I successfully uploaded file in storage : here is rhe storage image:
I tried to setup public disc by editing the .env .I just added here a line of code :
FILESYSTEM_DRIVER=public
I added this line on line 16 .here is the env image:
I did not change any code from my config/filesystems.php . my filesystem image:
after all done I use the code to display my image in this way: page:
here is page resource code image:
I also used the artisan cmd php artisan storage:link
to link the storage to public. It can be noticed from the top storage image .
That's all I have done . but the image can not be seen .
please someone help me out here.What should i do?
your path is wrong try this
asset('storage') . '/posts/' . $file->name
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community