alnouirah
1 week ago
140
6
Laravel

upload files ?

Posted 1 week ago by alnouirah

Hello guys . i get confused in how to store file and retrieve it inside the view . when uploading file for example image i do :

$path = $products->store('public/customer_order_products'); 

the value of the $path will be public\customer_order_products\uVPXIMwCeRiI6XBIyhTg.jpg . right know how to retrieve the image inside view ? i used {{ asset('storage\') }}{{ $path }} but it doesn't work i also used url() even Storage::($file)` and nothing work ! is there any one who can help me to understand how the things work here ! i have read the doc but i get confused !

Please sign in or create an account to participate in this conversation.