3

I'm using Laravel Voyager admin panel and I have created a value in the admin that is retrieved via {{ setting('site.logo') }}.

On the admin panel, which I did not write the core code, the path returned is storage/settings/monthyear/image.png but when called on the front end it's missing storage in the page settings/monthyear/image.png.

I don't understand why. I would expect them to both be the same path.

matiaslauriti
  • 7,065
  • 4
  • 31
  • 43
Spencer Hill
  • 1,043
  • 2
  • 15
  • 38

1 Answers1

0

You should use it like this:

{{ Voyager::image( setting('site.logo') ); }}

You can find it in their docs 3:05 of video

Nikolay Bronskiy
  • 843
  • 11
  • 19