Skip to content

Instantly share code, notes, and snippets.

@sudiptpa
Forked from JeffreyWay/series.blade.php
Created August 8, 2020 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudiptpa/0186d1c25b9da8636d535d23d25a0c10 to your computer and use it in GitHub Desktop.
Save sudiptpa/0186d1c25b9da8636d535d23d25a0c10 to your computer and use it in GitHub Desktop.
<x-layout>
<x-slot name="head">
<x-social-media-meta
title="Blade Component Examples"
description="Learn about all sorts of Blade component tips and tricks."
image="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg"
card="summary"
/>
</x-slot>
<x-section>
<h1 class="font-bold text-lg">Blade Component Examples</h1>
</x-section>
</x-layout>
@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 }}" />
@endif
<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