Skip to content

Instantly share code, notes, and snippets.

View atmonshi's full-sized avatar

Lara Zeus atmonshi

View GitHub Profile
@afsakar
afsakar / AdminPanelProvider.php
Last active April 25, 2025 01:12
Filter for navigation items in FilamentPHP
<?php
namespace App\Providers\Filament;
use Filament\Panel;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;
public function panel(Panel $panel): Panel
{
@WaleedAlrashed
WaleedAlrashed / .php
Created October 12, 2024 18:08
Filament - zeus bolt (dynamic repeater form)
<?php
namespace App\Zeus\Fields;
use Filament\Forms\Components\Grid;
use Filament\Forms\Components\Hidden;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\TextInput;
use Filament\Tables\Columns\TextColumn;
use LaraZeus\Accordion\Forms\Accordion;
@MACscr
MACscr / FilamentTableTabs.php
Last active March 26, 2025 21:31
Standalone Filament Table Tabs
<?php
# App\Http\Livewire\Traits\FilamentTableTabs
namespace App\Http\Livewire\Traits;
trait FilamentTableTabs
{
public ?string $activeTab = null;
@awcodes
awcodes / NowAction.php
Created August 18, 2023 21:19
NowAction
<?php
namespace ...
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\DateTimePicker;
use Filament\Forms\Set;
class NowAction extends Action
{
@awcodes
awcodes / app.css
Created July 25, 2023 01:47
Filament v3 Custom Login
.fi-simple-main-ctn::before {
content: '';
position: absolute;
inset: 0;
opacity: 0.90;
background-image: radial-gradient(
circle at top,
theme('colors.primary.300'),
theme('colors.transparent'),
theme('colors.transparent') 100%
@laracasts
laracasts / modal.blade.php
Last active January 28, 2022 00:13
Modals with Zero JavaScript
<div id="{{ $name }}" class="overlay">
<a href="#" class="cancel"></a>
<div class="modal">
{{ $slot }}
<a href="#" class="close">&times;</a>
</div>
</div>
@stidges
stidges / tailwind.itermcolors
Last active November 30, 2023 21:00
An iTerm2 color scheme based on the Tailwind CSS color scheme (https://tailwindcss.com/docs/colors)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.17254902422428131</real>
@joseluisq
joseluisq / stash_dropped.md
Last active March 18, 2025 14:49
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.

@mazedlx
mazedlx / tailwindcss.blade.php
Created November 5, 2017 12:54
Tailwind CSS template for Laravel pagination
@if ($paginator->hasPages())
<div class="flex items-center">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<span class="rounded-l rounded-sm border border-brand-light px-3 py-2 cursor-not-allowed no-underline">&laquo;</span>
@else
<a
class="rounded-l rounded-sm border-t border-b border-l border-brand-light px-3 py-2 text-brand-dark hover:bg-brand-light no-underline"
href="{{ $paginator->previousPageUrl() }}"
rel="prev"
@psgganesh
psgganesh / README.md
Last active February 12, 2018 04:11
Use laravel / envoy for smoother deployments on forge servers

Adding envoy globally using

composer global require laravel/envoy

Update ~/.bashrc file to enable envoy on CLI

echo 'export PATH="$PATH:/home/forge/.config/composer/vendor/bin"' &gt;&gt; ~/.bashrc