You can nudge your life in a new direction every day.

Canonical URLs in Laravel 8

Submitted by admin on Thu, 05/20/2021 - 17:44

I was working with Segment & Laravel today and noted I need a canonical url in the head of my document.

 

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">

    <link rel="canonical" href="{{ url()->current() }}">
</head>