Skip to content

Instantly share code, notes, and snippets.

@ZeroGodForce
ZeroGodForce / HasUuid.php
Last active April 17, 2024 06:30
HasUuid Trait for Laravel
<?php
namespace App\Traits;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\App;
trait HasUuid
{
/**
@loilo
loilo / pass-slots.md
Last active July 24, 2024 18:45
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {