This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// app/providers/Filament/AdminPanelProvider.php | |
->spa() | |
->spaUrlExceptions(['*/lang/*']) | |
->middleware([SetLang::class]) | |
->renderHook( | |
name: PanelsRenderHook::USER_MENU_PROFILE_AFTER, | |
hook: fn (): View => view(view: 'filament.hooks.lang-switcher'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Events\MessageSent; | |
use Livewire\Volt\Component; | |
new class extends Component | |
{ | |
/** | |
* @var string[] | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.iconTheme": "symbols", | |
"git.autofetch": true, | |
"[dart]": { | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, | |
"editor.rulers": [80], | |
"editor.selectionHighlight": false, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestSelection": "first", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Enums; | |
use Filament\Support\Contracts\HasIcon; | |
use Filament\Support\Contracts\HasColor; | |
use Filament\Support\Contracts\HasLabel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filament\Widgets; | |
use App\Models\Order; | |
use Illuminate\View\View; | |
use App\Enums\OrderStatus; | |
use Leandrocfe\FilamentApexCharts\Widgets\ApexChartWidget; | |
class OrderStatusChart extends ApexChartWidget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Simple, based on field max length | |
Textarea::make('content') | |
->hint(fn ($state, $component) => 'left: ' . $component->getMaxLength() - strlen($state) . ' characters') | |
->maxlength(10) | |
->lazy() //or: reactive() for instant update, but less efficient | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filament\Actions; | |
use Filament\Forms; | |
use Filament\Pages\Actions\Action; | |
class PasswordAction extends Action | |
{ | |
protected function isPasswordSessionValid() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<div class="p-1 drop-shadow-sm" style="width: 1rem;"> | |
{!! $getRecord()->qr_code !!} | |
</div> | |
</div> |