Skip to content

Instantly share code, notes, and snippets.

View afsakar's full-sized avatar
🧠

Azad Furkan ŞAKAR afsakar

🧠
View GitHub Profile
@vlados
vlados / resources.css.filament.admin.theme.css
Created September 2, 2025 19:55
filament floating toolbar
@import '../../../../vendor/filament/filament/resources/css/theme.css';
@source '../../../../app/Filament/**/*';
@source '../../../../resources/views/filament/**/*';
.fi-body {
@apply bg-white;
}
.fi-sidebar-nav-groups {
@CharlieEtienne
CharlieEtienne / CheckFilamentCompat.php
Last active August 23, 2025 14:31
Check if your Filament Plugins are ready for v4
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
class CheckFilamentCompat extends Command
{
/**
@thaqebon
thaqebon / using-tailwind-v4-in-laravel12-with-filament-v3.md
Last active September 7, 2025 09:12
How to Use Tailwind v4 in Laravel 12 While Keeping Tailwind v3 for Filament v3 (Using Vite Separation)

🚀 How to Use Tailwind v3 for Filament v3 While Keeping Tailwind v4 in Laravel 12 (Using Vite Separation)

Problem: Laravel 12 supports Tailwind CSS v4, but Filament v3 is tied to Tailwind v3. Using both together can cause conflicts.

This guide shows how I solved the problem by isolating Filament’s frontend stack — with its own Tailwind v3, Vite config, and PostCSS config — separate from the Laravel app, which uses Tailwind v4.


🛠️ Step-by-Step Solution

@lucacastelnuovo
lucacastelnuovo / Filament V3 - Print Pop-Up.md
Last active October 18, 2024 11:16
Filament V3 - Print Pop-Up

Filament V3 - Print Pop-Up

This code allows you to show a pop-up to print a "PDF" (rendered html) without first having to open the PDF viewer and requiring the user to press the print button.

@saade
saade / FilamentServiceProvider.php
Last active September 19, 2025 10:47
My Filament Defaults
<?php
namespace App\Providers;
use Filament\Actions;
use Filament\Forms;
use Filament\Infolists;
use Filament\Notifications\Notification;
use Filament\Pages;
use Filament\Support\Enums\MaxWidth;
@karakhanyans
karakhanyans / LemonSqueezyService.php
Created March 24, 2024 11:14
LemonSqueezyServiceProvider
<?php
namespace App\Services;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Http;
class LemonSqueezyService
{
<?php
namespace Database\Seeders;
use App\Models\Country;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CountrySeeder extends Seeder
@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;
@berkocan
berkocan / Namaz Vakitleri (Api) Json Kodu.php
Last active November 28, 2021 21:23
Namaz Vakitleri (Api) Json Kodu
Namaz vakitlerini json ile api olarak sitenize eklemek için aşağıdaki kodları kullanabilirsiniz. ▼☟↓
<?php
$JSON = json_decode(file_get_contents('https://api.genelpara.com/embed/namaz-vakit.json'), true);
?>
<ul>
<li>
<span>İstanbul</span>
<span>İmsak: <?php echo $JSON['istanbul']['imsak']; ?></span>
<span>Güneş: <?php echo $JSON['istanbul']['gunes']; ?></span>
@berkocan
berkocan / Hava Durumu (Api) Json Kodu.php
Last active November 28, 2021 21:23
Hava Durumu (Api) Json Kodu | Hava Durumu Api
Hava durumunu json ile api olarak sitenize eklemek için aşağıdaki kodları kullanabilirsiniz. ▼☟↓
<?php
$JSON = json_decode(file_get_contents('https://api.genelpara.com/embed/hava-durumu.json'), true);
?>
<ul>
<li>
<span>İstanbul</span>
<span>Hava: <?php echo $JSON['istanbul']['hava']; ?></span>
<span>Sıcaklık: <?php echo $JSON['istanbul']['sicaklik']; ?></span>