Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

spatie/laravel-beyond-crud.com

58 stars
3 code files
View spatie/laravel-beyond-crud.com on GitHub

app/helpers.php

Open in GitHub
//
function spatieUrl(string $url = 'https://spatie.be'): string
{
if ($referrer = session()->get('referrer')) {
return $url . "?referrer={$referrer}";
}
 
return $url;
}

resources/views/partials/footer.blade.php

Open in GitHub
//
<small class="block px-8 pt-8 pb-8 bg-red-500 text-red-100 overflow-hidden">
<div class="max-w-2xl mx-auto flex items-center">
<a href="{{ spatieUrl() }}" class="z-10 h-6 xs:h-8 text-red-600 hover:opacity-75">
@include('partials.logo')
</a>
<a href="{{route('termsOfUse')}}" class="underline ml-auto hover:opacity-75">Terms of Use</a>
<a href="{{route('privacy')}}" class="underline ml-4 xs:ml-12 hover:opacity-75">Privacy &amp; Cookie Policy</a>
</div>
</small>

resources/views/front/home/sample-chapter.blade.php

Open in GitHub
//
<header class="z-20 sticky top-0 overflow-hidden pb-8">
<div class="px-8 bg-red-100 shadow-nav">
<div class="max-w-2xl mx-auto h-24 flex items-center justify-between">
<a href="/" class="flex items-center uppercase text-sm font-display font-semibold tracking-wider leading-none">
&larr; Home
</a>
<a href="{{spatieUrl('https://spatie.be/products/laravel-beyond-crud')}}">
<button class="px-3 h-8 bg-gray-300 hover:bg-gray-400 text-gray-800 uppercase text-sm font-display font-bold tracking-wider leading-none">
Buy course
</button>
</a>
</div>
</div>
</header>
//

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.