Hikari Mashiro
Hikari Mashiro
FFilament
Created by Hikari Mashiro on 10/2/2023 in #❓┊help
Background colour of a panel
Hi, just wondering if there is a way to change the whole background colour of a panel in both light and dark mode?
6 replies
FFilament
Created by Hikari Mashiro on 9/19/2023 in #❓┊help
Select ->relationship table not found.
Hey guys, run into a little trouble using Select->relationship. Advice appreciated. Thanks. The follow code is in the Action::make('accept_offer')->form()
Select::make('branch_id')
->label('Branch')
->exists('shop_branches', 'id')
->relationship(
name: 'shopBranch',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query, Offer|AutoOffer $record) => $query->where(['staff_id' => $record->staff_id, 'enabled' => true])->orderBy('name'),)
->required()
->live(),
Select::make('branch_id')
->label('Branch')
->exists('shop_branches', 'id')
->relationship(
name: 'shopBranch',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query, Offer|AutoOffer $record) => $query->where(['staff_id' => $record->staff_id, 'enabled' => true])->orderBy('name'),)
->required()
->live(),
Error: SQLSTATE[HY000]: General error: 1 no such table: shop_branches I am using the same code in the default admin panel resource and it work well. It also work well in v2 for v2 when using the old ways. But when I use it on user panel which I created and render the widget via .
<div class="mb-5">
@livewire(\App\Filament\User\Widgets\AutoOfferWidget::class)
</div>
<div class="mb-5">
@livewire(\App\Filament\User\Widgets\AutoOfferWidget::class)
</div>
in the blade file, it throw the error above. The table do exist in my db.
2 replies
FFilament
Created by Hikari Mashiro on 9/5/2023 in #❓┊help
iconColumn's icon color on tables in custom livewire pages.
No description
2 replies
FFilament
Created by Hikari Mashiro on 8/23/2023 in #❓┊help
No Property Found For Validation: []
7 replies
FFilament
Created by Hikari Mashiro on 5/2/2023 in #❓┊help
getTableQuery using groupBy
Hello, I have been trying to create a table using getTableQuery() for Widget. What I want to do is make the table show Monday - Sunday on the column with application count under each date. I currently have this query in getTableQuery() return Application::selectRaw('COUNT(id) as count, DAYOFWEEK(created_at) as dayOfWeek') ->whereYear('created_at', date('Y')) ->groupBy(DB::raw('DAYOFWEEK(created_at)')); but it keep telling me "Filament\Widgets\TableWidget::getTableRecordKey(): Return value must be of type string, null returned" Advice appreciated. Thanks!
7 replies
FFilament
Created by Hikari Mashiro on 3/8/2023 in #❓┊help
Filament Table Dark Mode with Jetstream and tailwinds dark mode changing using javascript.
3 replies