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
public function getLabel(): string|Htmlable|null | |
{ | |
return match ($this) { | |
self::PENDING => new HtmlString(Blade::render('<x-filament::badge color="info">Pending</x-filament::badge>')), | |
}; | |
} |
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
function factory() { | |
php artisan tinker --execute="$1::factory(${2:-1})->create();" | |
} |
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\Pages\Auth; | |
use App\Models\User; | |
use DiogoGPinto\AuthUIEnhancer\Pages\Auth\Concerns\HasCustomLayout; | |
use Filament\Forms\Components\Select; | |
use Filament\Forms\Form; | |
use Filament\Http\Responses\Auth\Contracts\LoginResponse; | |
use Filament\Pages\Auth\Login as BasePage; |
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\Traits; | |
trait HasActiveIcon | |
{ | |
public static function getActiveNavigationIcon(): ?string | |
{ | |
return str(self::getNavigationIcon()) | |
->replace('heroicon-o-', 'heroicon-s-') |
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\Filament\Resources\CompanyResource\Pages\CreateCompany; | |
use App\Filament\Resources\CompanyResource\Pages\EditCompany; | |
use App\Filament\Resources\CompanyResource\Pages\ListCompanies; | |
use App\Models\Company; | |
use Filament\Actions\DeleteAction; | |
use Filament\Tables\Actions\DeleteBulkAction; | |
use Illuminate\Support\Str; |