ahinkle
ahinkle
FFilament
Created by thedangler on 5/8/2024 in #❓┊help
After Login in, Dashboard design is all out of wack.
Sounds like you have a mismatching version of Livewire.
16 replies
FFilament
Created by thedangler on 5/8/2024 in #❓┊help
After Login in, Dashboard design is all out of wack.
Please share the output of php artisan about
16 replies
FFilament
Created by ahinkle on 5/3/2024 in #❓┊help
Relationship Manager: Open in same window (non-modal)
Ended up having to make some light changes to the action:
Tables\Actions\EditAction::make()
->url(fn (Post $record): string => PostResource::getUrl('edit', ['record' => $record]))
Tables\Actions\EditAction::make()
->url(fn (Post $record): string => PostResource::getUrl('edit', ['record' => $record]))
2 replies
FFilament
Created by ahinkle on 4/26/2024 in #❓┊help
Filament Reserved Keywords?
Ah perfect. That was it. Thanks so much
7 replies
FFilament
Created by ahinkle on 4/26/2024 in #❓┊help
Filament Reserved Keywords?
Sorry - updated. Thanks!
7 replies
FFilament
Created by ahinkle on 4/26/2024 in #❓┊help
Filament Reserved Keywords?
<?php

namespace App\Filament\Resources;

use App\Filament\Resources\MessageResource\Pages;
use App\Models\Message;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;

class MessageResource extends Resource
{
protected static ?string $model = Message::class;

protected static ?string $navigationIcon = 'heroicon-o-book-open';

public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}

public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\ViewAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateActions([
Tables\Actions\CreateAction::make(),
]);
}

public static function getRelations(): array
{
return [
//
];
}

public static function getPages(): array
{
return [
'index' => Pages\ListMessages::route('/'),
'view' => Pages\ViewMessage::route('/{record}'),
'create' => Pages\CreateMessage::route('/create'),
'edit' => Pages\EditMessage::route('/{record}/edit'),
];
}
}
<?php

namespace App\Filament\Resources;

use App\Filament\Resources\MessageResource\Pages;
use App\Models\Message;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;

class MessageResource extends Resource
{
protected static ?string $model = Message::class;

protected static ?string $navigationIcon = 'heroicon-o-book-open';

public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}

public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\ViewAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateActions([
Tables\Actions\CreateAction::make(),
]);
}

public static function getRelations(): array
{
return [
//
];
}

public static function getPages(): array
{
return [
'index' => Pages\ListMessages::route('/'),
'view' => Pages\ViewMessage::route('/{record}'),
'create' => Pages\CreateMessage::route('/create'),
'edit' => Pages\EditMessage::route('/{record}/edit'),
];
}
}
1. Create a Message model, then a resource 2. admin/messages/create is a 404
7 replies
FFilament
Created by ahinkle on 2/5/2024 in #❓┊help
Writing a test to call toggle on ToggleColumn List Resource
Oo perfect, thanks, @Karzer !
5 replies
FFilament
Created by ahinkle on 2/5/2024 in #❓┊help
Writing a test to call toggle on ToggleColumn List Resource
Is a bump allowed? 🙂
5 replies
FFilament
Created by ahinkle on 1/17/2024 in #❓┊help
Set Global Form Input Label as `Str::headline()`?
Perfect thank you
TextInput::configureUsing(function (TextInput $input) {
$input->label(Str::headline($input->getLabel()));
});
TextInput::configureUsing(function (TextInput $input) {
$input->label(Str::headline($input->getLabel()));
});
3 replies
FFilament
Created by myster on 11/30/2023 in #❓┊help
Sub navigation
I ran into this. You may have permission mismatch here where the user can't access the parent item - but does have access to the child.
77 replies
FFilament
Created by ahinkle on 9/1/2023 in #❓┊help
Fields(such as a date range) in Charts?
Would you have an example of this by chance? Struggling to find customization options in the docs.
5 replies
FFilament
Created by ahinkle on 9/1/2023 in #❓┊help
Fields(such as a date range) in Charts?
Gotcha-thank you!
5 replies
FFilament
Created by ahinkle on 8/12/2023 in #❓┊help
Edit/Remove "Create a (resource) to get started." when `canCreate()` is false
ah just missed that. Thanks!
3 replies
FFilament
Created by ahinkle on 7/31/2023 in #❓┊help
Nullable DateTime Filter Value on Table Filter (v3)
Thanks!
5 replies
FFilament
Created by ahinkle on 7/31/2023 in #❓┊help
Nullable DateTime Filter Value on Table Filter (v3)
Removing the native datepicker fixes this issue (it might be a bug, not sure)
$this->form([
DatePicker::make('created_from')->label('Created From')->native(false),
DatePicker::make('created_until')->label('Created Until')->native(false),
]);
$this->form([
DatePicker::make('created_from')->label('Created From')->native(false),
DatePicker::make('created_until')->label('Created Until')->native(false),
]);
5 replies