Ookma-Kyi Project Leader
Ookma-Kyi Project Leader
Explore posts from servers
FFilament
Created by Ookma-Kyi Project Leader on 10/31/2024 in #❓┊help
Set 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:
QLSTATE[42S02]: Base table or view not found: 1146 Table 'ookma-kyi.model__has__roles' doesn't exist

select count(*) as aggregate from `model__has__roles`
QLSTATE[42S02]: Base table or view not found: 1146 Table 'ookma-kyi.model__has__roles' doesn't exist

select count(*) as aggregate from `model__has__roles`
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
FFilament
Created by Ookma-Kyi Project Leader on 8/1/2024 in #❓┊help
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
FFilament
Created by Ookma-Kyi Project Leader on 7/24/2024 in #❓┊help
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
FFilament
Created by Ookma-Kyi Project Leader on 7/18/2024 in #❓┊help
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:
The "3.2" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

- Root composer.json requires filament/filament 3.2 -> satisfiable by filament/filament[v3.2.0].

- filament/filament v3.2.0 requires illuminate/console ^10.0 -> found illuminate/console[v10.0.0, ..., v10.48.16] but these were not loaded, likely because it conflicts with another require.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PS C:\laragon\www\Ookma-Kyi-Core>
The "3.2" constraint for "filament/filament" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update filament/filament --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

- Root composer.json requires filament/filament 3.2 -> satisfiable by filament/filament[v3.2.0].

- filament/filament v3.2.0 requires illuminate/console ^10.0 -> found illuminate/console[v10.0.0, ..., v10.48.16] but these were not loaded, likely because it conflicts with another require.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PS C:\laragon\www\Ookma-Kyi-Core>
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