27/08/2023
- Go to
terminal
of your cpanel account and type the command below to generateecdsa
key pair
ssh-keygen -t ecdsa -b 251 -c "EMAIL_ADDRESS"
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Route; | |
use Filament\Support\Facades\FilamentView; | |
use Filament\View\PanelsRenderHook; | |
use Symfony\Component\HttpFoundation\StreamedResponse; |
->modifyQueryUsing(function (Builder $query, $livewire) { | |
$hasFilters = collect($livewire->tableFilters) | |
->filter(fn($filter) => !empty($filter['values'])) | |
->isNotEmpty(); | |
return ($livewire->hasTableSearch() || $hasFilters) ? $query : $query->whereRaw('1 = 0'); | |
}) |
<?php | |
namespace App\Traits; | |
trait HasActiveIcon | |
{ | |
public static function getActiveNavigationIcon(): ?string | |
{ | |
return str(self::getNavigationIcon()) | |
->replace('heroicon-o-', 'heroicon-s-') |
<?php | |
namespace App\Traits; | |
use Illuminate\Database\Eloquent\Builder; | |
trait SearchTranslatableField | |
{ | |
public function scopeSearchByTranslatableField(Builder $query, string $value, string $field = 'name'): Builder | |
{ |