Fellipe
Fellipe
FFilament
Created by Fellipe on 9/23/2024 in #❓┊help
How to get actually theme on filament
solution ->
filament()->getCurrentPanel()->getColors()
filament()->getCurrentPanel()->getColors()
3 replies
FFilament
Created by Fellipe on 7/9/2024 in #❓┊help
Form with Table error Method Not Allowed
No description
8 replies
FFilament
Created by Fellipe on 7/9/2024 in #❓┊help
Form with Table error Method Not Allowed
No description
8 replies
FFilament
Created by Fellipe on 7/9/2024 in #❓┊help
Form with Table error Method Not Allowed
No description
8 replies
FFilament
Created by Fellipe on 7/9/2024 in #❓┊help
Form with Table error Method Not Allowed
8 replies
FFilament
Created by Fellipe on 3/31/2024 in #❓┊help
How change text Modal and table nothing register
->modalHeading('Delete post')
->modalHeading('Delete post')
9 replies
FFilament
Created by Fellipe on 3/31/2024 in #❓┊help
How change text Modal and table nothing register
thx, u'are best!!
9 replies
FFilament
Created by Fellipe on 3/31/2024 in #❓┊help
How change text Modal and table nothing register
up
9 replies
FFilament
Created by Fellipe on 3/27/2024 in #❓┊help
Filament Page with Table
att
<?php

namespace App\Filament\Resources\ModalityResource\Pages;

use App\Filament\Resources\ModalityResource;
use App\Models\ModalityAttachment;
use App\Models\ModalityYear;
use Filament\Resources\Pages\Concerns\InteractsWithRecord;
use Filament\Forms\Components\Builder;
use Filament\Forms\Components\View;
use Filament\Resources\Pages\Page;
use Filament\Tables\Actions\Contracts\HasTable;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Concerns\InteractsWithTable;
use Filament\Tables\Contracts\HasTable as ContractsHasTable;
use Filament\Tables\Table;

class ModalityAttachments extends Page implements ContractsHasTable
{
use InteractsWithRecord, InteractsWithTable;

protected static ?string $model = ModalityAttachment::class;

protected static string $resource = ModalityResource::class;

protected static string $view = 'filament.resources.modality-resource.pages.modality-attachments';

public function mount(int | string $modality, int | string $record): void
{
$this->record = ModalityAttachment::where('modality_year_id', $record);
}

public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name'),
]);
}
}
<?php

namespace App\Filament\Resources\ModalityResource\Pages;

use App\Filament\Resources\ModalityResource;
use App\Models\ModalityAttachment;
use App\Models\ModalityYear;
use Filament\Resources\Pages\Concerns\InteractsWithRecord;
use Filament\Forms\Components\Builder;
use Filament\Forms\Components\View;
use Filament\Resources\Pages\Page;
use Filament\Tables\Actions\Contracts\HasTable;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Concerns\InteractsWithTable;
use Filament\Tables\Contracts\HasTable as ContractsHasTable;
use Filament\Tables\Table;

class ModalityAttachments extends Page implements ContractsHasTable
{
use InteractsWithRecord, InteractsWithTable;

protected static ?string $model = ModalityAttachment::class;

protected static string $resource = ModalityResource::class;

protected static string $view = 'filament.resources.modality-resource.pages.modality-attachments';

public function mount(int | string $modality, int | string $record): void
{
$this->record = ModalityAttachment::where('modality_year_id', $record);
}

public function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('name'),
]);
}
}
Cannot assign Illuminate\Database\Eloquent\Builder to property App\Filament\Resources\ModalityResource\Pages\ModalityAttachments::$record of type Illuminate\Database\Eloquent\Model|string|int|null
4 replies
FFilament
Created by Fellipe on 3/27/2024 in #❓┊help
Filament Page with Table
up
4 replies
FFilament
Created by Fellipe on 3/22/2024 in #❓┊help
Page without table, only form
u are the best!!!
10 replies
FFilament
Created by Fellipe on 3/22/2024 in #❓┊help
Page without table, only form
I just want a form page, without a table
10 replies
FFilament
Created by Fellipe on 3/22/2024 in #❓┊help
Page without table, only form
?
10 replies