Jaw
Jaw
FFilament
Created by Jaw on 11/30/2023 in #❓┊help
how to place create action on top of the table?
No description
5 replies
FFilament
Created by Jaw on 11/30/2023 in #❓┊help
how to place create action on top of the table?
never mind. i was missing create action inside list resource
<?php


use App\Filament\Resources\UnitResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListUnits extends ListRecords
{
protected static string $resource = UnitResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(), // <-- missing this
];
}
}
<?php


use App\Filament\Resources\UnitResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListUnits extends ListRecords
{
protected static string $resource = UnitResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(), // <-- missing this
];
}
}
5 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
that's totally fine. if i can just use a vue instance via script tag, that'll be nice.
16 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
i have not bundled up anyting yet.
16 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
i am using official inertia + with vue from laravel.
16 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
i am very experienced in vue and laravel. i just need help figuring out how to inject vue app into a custom filament page so i can do crazy stuff.
16 replies
FFilament
Created by Jaw on 10/6/2023 in #❓┊help
Is there a way to add vuejs app on a single that doenst tie to any resource?
i am very noob-ish to filament.
<?php

namespace App\Filament\Pages;

use Filament\Pages\Page;

class Reports extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-chart-pie';

protected static string $view = 'filament.pages.reports';

protected static ?string $title = 'Reports';

protected static ?string $navigationLabel = 'Reports';

protected static ?int $navigationSort = 4;

// protected ?string $heading = "";
}
<?php

namespace App\Filament\Pages;

use Filament\Pages\Page;

class Reports extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-chart-pie';

protected static string $view = 'filament.pages.reports';

protected static ?string $title = 'Reports';

protected static ?string $navigationLabel = 'Reports';

protected static ?int $navigationSort = 4;

// protected ?string $heading = "";
}
i have a custom report page where I'd like to embed vue app into it. will you point me to a direction or any reading material? thanks
16 replies
FFilament
Created by Jaw on 9/20/2023 in #❓┊help
How can i get a value from previous column?
thanks. we can also do it this way:
->formatStateUsing(function ($state, $record) {
$modelClass = $record->fileable_type;
if (class_exists($modelClass)) {
return $modelClass::find($state)->name;
}
})
->formatStateUsing(function ($state, $record) {
$modelClass = $record->fileable_type;
if (class_exists($modelClass)) {
return $modelClass::find($state)->name;
}
})
5 replies
FFilament
Created by Mark Chaney on 9/15/2023 in #❓┊help
Searchable relationship
i also have the same question
84 replies
FFilament
Created by Jaw on 9/13/2023 in #❓┊help
is there a way to change `select an option` text?
we can do ->placeholder('Your Custom Placeholder Text'),
3 replies