Randy_Johnson
3 months ago
827
4
General

Fix my Ugly Code! Using Assets!

Posted 3 months ago by Randy_Johnson

Hi I am using

{{ asset('storage/product') }}{{ '/'.$product->img }}

But I would much rather use something like

{{ asset('storage/product/$product->img') }}

or

{{ asset('storage/product'.$product->img) }}

But only the first one works, please help.

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