Ookma-Kyi Project Leader
Explore posts from serversSet table to use for filament resource
I am trying to use Filament with Laravel Permissions and have run into an issue. I set the model relationship manually
protected static ?string $model = Model_Has_Roles::class;
as that's what the table is called. However when I try to access it I get the following error:
It seems Filament added an additional _
between each word as it should be model_has_roles
. I tried to search the documentation but, didn't find anything at the time. Could someone please steer me in the right direction?14 replies
Model instance isn't updating
I have a character model that can be soft-deleted. However whenever I try to save the updated model instance in the admin panel it shows the
saved
notification, but on accessing the model again it reverts to the previous state. Attached is the character panel code. I originally thought it was my polocies, but I set everything to true and the issue still persists.
Update: Name and Rank is updating, every other field reverts to the previous state.4 replies
Opnion on sensitive fields in the user table of admin panel
I just ran
php artisan make:filament-resource User --generate
and got a nice panel for the user model. However it includes some fields which I consider can be abused by moderators and admins such as Password
, Two factor secret
, Two factor recovery codes
and Two factor confirmed at
. I am looking for an opinion on if these fields are a security risk or I am just being overly cautious.2 replies
Trying to install Filament
Hello,
I am trying to install Filament for my project. I ran the following command as per the instructions in the docs:
PS C:\laragon\www\Ookma-Kyi-Core> composer require filament/filament:"^3.2" -W
and I got the following output:
As per the docs the requirements are:
Filament requires the following to run:
PHP 8.1+
Laravel v10.0+
Livewire v3.0+
Which I meet. It seems I met the other requirements but it failed to load for some reason.25 replies