Skip to content

Instantly share code, notes, and snippets.

View afsakar's full-sized avatar
🧠

Azad Furkan ŞAKAR afsakar

🧠
View GitHub Profile
@CharlieEtienne
CharlieEtienne / CheckFilamentCompat.php
Last active June 22, 2025 03:48
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 July 1, 2025 10:10
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 May 2, 2025 16:05
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>
@deepak-cotocus
deepak-cotocus / Laravel-Queue-Supervisor-configuration.md
Last active March 14, 2025 15:33
Laravel Queue Supervisor configuration

How to use Supervisor:A Process Control System for Laravel queue In Linux based OS

What is Supervisor: A Process Control System?

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. Supervisor provides you with one place to start, stop, and monitor your processes. Processes can be controlled individually or in groups. You can configure Supervisor to provide a local or remote command line and web interface.


Why do we use Supervisor for Larave Queue?

The supervisor is a process manager which Laravel suggests to use as a process monitor for queue workers. It will automatically start the queue worker in the background, even after the system has booted and will automatically restart the worker if the worker exits unexpectedly.