Skip to content

Instantly share code, notes, and snippets.

View dhruva81's full-sized avatar
🏠
Working from home

Dhruva dhruva81

🏠
Working from home
View GitHub Profile
@ju5t
ju5t / instructions.md
Last active May 3, 2024 21:45
Livewire enabled TinyMCE blade component

Instructions

This is a very basic TinyMCE component. It uses 'entangle'. This allows you to link a Livewire and Alpine property to eachother. If one value changes, the other does too.

Installation

Add tinymce.blade.php to views/components/input. This can be another component folder too if you prefer, but keep in mind that you should also

@bezhanSalleh
bezhanSalleh / ModelResource.php
Last active July 31, 2022 23:26
Filament Dynamic UI for Role and Permissions | Toggel + Checkboxes
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Grid::make()
->schema([
Forms\Components\Card::make()
->schema([
Forms\Components\TextInput::make('name')
->required()
@benjamincrozat
benjamincrozat / tailwind.blade.php
Last active August 3, 2023 19:55
A nice Tailwind CSS-based design for LengthAwarePaginator.
@if ($paginator->hasPages())
<nav role="navigation" aria-label="{{ __('Pagination Navigation') }}" class="flex items-center justify-between mt-16">
<div class="text-gray-400 dark:text-gray-800">
{{ $paginator->count() }}
{!! __('of') !!}
<span>{{ $paginator->total() }}</span>
{!! __('results') !!}
</div>
<div class="flex gap-1">
"use client";
import {
Dialog,
DialogContent,
DialogTitle,
DialogTrigger
} from "@/components/ui/dialog";
import useDragDrop from "@/hooks/useDragDrop";
import { cn, formatBytes } from "@/lib/utils";