abkrim
abkrim
FFilament
Created by abkrim on 10/24/2024 in #❓┊help
Query builder operators for TextConstraint
Ufff. What a pain to find it. Also if continue way of code ->operators() and his getter getOperators() I see the class Operator Thanks to that point I was able to locate the logic of the operators, and their location. It is true that I forgot to follow the path of ->operators() to see that it reached the Operator class. I think that the manual in that section could use some improvement but I don't dare to implement it since my English is pitiful.
QueryBuilder::make()
->constraints([
TextConstraint::make('modem_id')>operators([
EqualsOperator::class,
),
]),
QueryBuilder::make()
->constraints([
TextConstraint::make('modem_id')>operators([
EqualsOperator::class,
),
]),
3 replies
FFilament
Created by abkrim on 10/23/2024 in #❓┊help
Modify size on modal view of resource
A lot of thanks @Leandro Ferreira Works fine
4 replies
FFilament
Created by abkrim on 3/12/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD. 405 ERROR
I older post >Is there a fix for this? I upgraded to Filament v3.2.44 and now I cannot log in anymore to the admin panel... >Edit: I fixed this for my installation by re-publishing the Livewire assets . I also added the >following to composer.json in the scripts/post-autoload-dump section:- php artisan vendor:publish --force --tag=livewire:assets --ansi`
12 replies
FFilament
Created by abkrim on 8/24/2023 in #❓┊help
Currency factoring 100 (Solved)
Ah.. yes. But I like it in Filament usning reactivity or hidratation. Thanks.
7 replies
FFilament
Created by abkrim on 8/24/2023 in #❓┊help
Currency factoring 100 (Solved)
Can you explain, pelase?
7 replies
FFilament
Created by abkrim on 8/24/2023 in #❓┊help
Currency factoring 100 (Solved)
I see solution in Tables - Calculate state
Tables\Columns\TextColumn::make('price')->money('eur')
->state(function (Advert $advert): float {
return $advert->price / 100;
})
->sortable(),
Tables\Columns\TextColumn::make('price')->money('eur')
->state(function (Advert $advert): float {
return $advert->price / 100;
})
->sortable(),
7 replies