trovster
trovster
FFilament
Created by trovster on 10/8/2024 in #❓┊help
Creating a widget returns an error.
I was using getHeaderWidgets in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.
8 replies
FFilament
Created by Matthew on 10/8/2024 in #❓┊help
Table Actions and making variables more efficient
Implementing getLabel() on the model might help. There is an interface/contract for this, which I use for Enums;
<?php

namespace Filament\Support\Contracts;

interface HasLabel
{
public function getLabel(): ?string;
}
<?php

namespace Filament\Support\Contracts;

interface HasLabel
{
public function getLabel(): ?string;
}
6 replies
FFilament
Created by trovster on 10/8/2024 in #❓┊help
Creating a widget returns an error.
Cleared. Same error.
8 replies
FFilament
Created by trovster on 10/8/2024 in #❓┊help
Creating a widget returns an error.
Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................. v3.2.115
Views .............................................................................................................................. NOT PUBLISHED
Filament .........................................................................................................................................
Packages ......................................................................................... filament, forms, notifications, support, tables
Version ................................................................................................................................. v3.2.115
Views .............................................................................................................................. NOT PUBLISHED
8 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Image Editor Height/Width
I have just been testing this again and it seems like the following has worked, if I also add ->imageResizeMode('force').
protected function aspectRatio(): string
{
return strval(Movie::POSTER_HEIGHT / Movie::POSTER_WIDTH);
}
protected function aspectRatio(): string
{
return strval(Movie::POSTER_HEIGHT / Movie::POSTER_WIDTH);
}
7 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Image Editor Height/Width
No, this does nothing. Getting rid of this still crops incorrectly. I have just tried and I get an image which is 269x399 for a poster, which is wrong. Also, if I don't open the editor, it doesn't resize at all!
7 replies
FFilament
Created by SuperUserDo on 8/13/2024 in #❓┊help
Custom Column Records
I would create mutators on your model, then you can use them in your columns.
4 replies
FFilament
Created by vahnmarty on 8/13/2024 in #❓┊help
How to reuse a Form Field?
I've done this by extending the field you want (eg TextInput) and then use $this->minLength()->maxLength() etc inside that.
4 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Image Editor Height/Width
Does anyone have any suggestions for this strange issue with the cropping of images?
7 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Hide Actions on RelationManager
Thanks for the debugging. I should've tested with my newer branch.
9 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Hide Actions on RelationManager
AH! My current branch is on an old version of Filament (Laravel 9, due to Nova). It appears this behaviour has been changed to how I expected it, in the latest version (different branch). Perfect!
9 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Hide Actions on RelationManager
@Leandro Ferreira This does not override them, this adds to them…
9 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Hide Actions on RelationManager
Does anyone know if it is possible to remove actions from a table listing?
9 replies
FFilament
Created by atabegruslan on 8/1/2024 in #❓┊help
Custom titles or warning banners in admin dashboard
8 replies
FFilament
Created by MZX on 8/1/2024 in #❓┊help
How to hide the field but still get the data
Alternatively, you can use mutateFormDataBeforeSave - https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-saving
$data['submission_date'] = now();
$data['submission_date'] = now();
6 replies
FFilament
Created by MZX on 8/1/2024 in #❓┊help
How to hide the field but still get the data
6 replies
FFilament
Created by trovster on 7/25/2024 in #❓┊help
Image Editor Height/Width
My movie poster dimensions should be 270x400, but it generates an image that is 270x399. My movie still dimensions should be 470x190 but it generates an image that is 468x189…!
7 replies
FFilament
Created by alfaruqrizqi18 on 9/8/2023 in #❓┊help
How to login from smartphone?
Have you set the APP_URL to be 192.168.1.4 ?
8 replies
FFilament
Created by binaryfire on 9/7/2023 in #❓┊help
Bypass automatic case alterations for labels
Aha
/**
* @deprecated Use `$modelLabel` instead.
*/
protected static ?string $label = null;

protected static ?string $modelLabel = null;
/**
* @deprecated Use `$modelLabel` instead.
*/
protected static ?string $label = null;

protected static ?string $modelLabel = null;
11 replies
FFilament
Created by binaryfire on 9/7/2023 in #❓┊help
Bypass automatic case alterations for labels
I have protected static ?string $modelLabel not $label on my resources.
11 replies