i'm tryng to integrate metatags in my layout laravel,
app.layouts
<title>SiRegala.it - @yield('title')</title>
<meta name="description" content="@yield('description')"/>
<link rel="canonical" href="@yield('canonical')"/>
view
@section('title')
Homepage
@stop
@section('canonical')
<?php echoURL::current(); ?>
@stop
i'm tryng to get current url of my view, but actually i get this error:
Class 'echoURL' not found
How can i get Current URL ? maybe with blade? i tryed to search some solution with blade but i did not find nothing.
Thank you for your help!
Laravel 5.7
<link rel="canonical" href="{{ url()->current() }}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With