Skip to content

Instantly share code, notes, and snippets.

View robertdrakedennis's full-sized avatar

Robert Dennis robertdrakedennis

View GitHub Profile
@lucacastelnuovo
lucacastelnuovo / HasRoles.php
Created July 28, 2023 21:38
Filament V3 multi-tenancy & laravel-permission role helper
<?php
namespace App\Models\Support;
use App\Models\Tenant;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Spatie\Permission\Traits\HasRoles as SpatieHasRoles;
trait HasRoles
{
@ryangjchandler
ryangjchandler / README.md
Last active September 25, 2023 23:56
Tailwind Palette to CSS Variables

Tailwind Shades to CSS Variables

This script can be used to generate a set of CSS variables from a Tailwind shades object.

Overview

Let's say you have the following JavaScript object. You might have generated such an object on a site such as Tailwind Shades.

{