38 views
0% completed

Creating the link page

We have a backend, now we need a frontend to display the links at the username URL.

Video thumbnail

Get full access

You need to subscribe to get full access to the video and lesson content.

Join 6.2K+ learners from companies like Shopify, Microsoft, Tiktok, AppSumo and Instacart.

We need to address the error message caused by the canonical setting in the SEO. The root is expecting an array, but we're giving it a string. Let's fix this by turning it into an array:

['username' => $username]

Creating a Simple Template

Currently, the username.blade.php file is using the x-layouts-app layout, which includes unnecessary navigation elements. We need to create a simpler template for the front-end view.

  1. Create a new file in the components/layouts folder called public.blade.php .
  2. Update the username.blade.php file to use this new layout:
<x-layouts.public> <!-- Add public content here --> </x-layouts.public>

Fixing the Undefined SEO...

Subscribe now to get full access to the lesson content.

Get started →

Get full access

You need to subscribe to get full access to the lesson content.

Join 6.2K+ learners from companies like Shopify, Microsoft, Tiktok, AppSumo and Instacart.

Course Progress