Skip to content
Advertisement

Get base url in blade laravel 5.7

I want to display metaimage when i share my link. But i am unable to get image. here is my code. please suggest me what is in my code. Iam new laravel.

<meta property="og:image" content="../storage/uploads/{{$page->meta_image}}">

Advertisement

Answer

<meta property="og:image" content="{{ url('/path_to_image') }}">

Ref. : https://laravel.com/docs/5.7/helpers

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement