Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<x-slot name="head">
title="Blade Component Examples"
description="Learn about all sorts of Blade component tips and tricks."
<h1 class="font-bold text-lg">Blade Component Examples</h1>
@props(['card' => 'summary_large_image', 'title', 'description', 'image' => false])
<meta name="twitter:card" content="{{ $card }}" />
<meta name="twitter:site" content="@laracasts" />
<meta property="og:title" content="{{ $title }}" />
<meta property="og:description" content="{{ $description }}" />
@if ($image)
<meta property="og:image" content="{{ $image }}" />
<meta property="og:url" content="{{ url()->current() }}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment