Skip to content

Instantly share code, notes, and snippets.

View bilogic's full-sized avatar

bilogic

  • Singapore
  • 09:48 (UTC +08:00)
View GitHub Profile
@bilogic
bilogic / Profile.php
Last active August 30, 2023 06:31
filament custom page with SpatieMediaLibraryFileUpload
<?php
namespace App\Filament\Pages;
use App\Models\Staff;
use Filament\Actions\Action;
use Filament\Forms\Components\SpatieMediaLibraryFileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
@bilogic
bilogic / TestPage.php
Last active September 30, 2023 08:09
Testing Filament Actions
<?php
namespace App\Filament\Pages;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Forms\Form;
use Filament\Notifications\Notification;
@bilogic
bilogic / EnvChecker.php
Created April 26, 2024 03:26
Flaky tests
<?php
namespace App;
use App\Exceptions\UnknownEnvKey;
use Dotenv\Dotenv;
class EnvChecker
{
protected $requiredKeys;