Bruno Pereira
Bruno Pereira
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
if the form is configured correctly I dont think theres a problem.
14 replies
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
no javascript errors on browser console?
14 replies
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
that select is in a form?
14 replies
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
instead of logger use dd($state)
14 replies
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
14 replies
FFilament
Created by ddoddsr on 2/21/2025 in #❓┊help
Can I get the value of a select and run a method? Not ubmitting a form.
Select::make('contact.status'). //
->live()
->options(StatusEnum::class)
->afterStateUpdated(
function ($state) {
logger('Here save new status!');
})
Select::make('contact.status'). //
->live()
->options(StatusEnum::class)
->afterStateUpdated(
function ($state) {
logger('Here save new status!');
})
$state is the value of the form field
14 replies
FFilament
Created by Leonardo Ferreira on 2/21/2025 in #❓┊help
403 Forbidden in Production or Staging with FilamentPHP
try to run php artisan optimize:clear
5 replies
FFilament
Created by Leonardo Ferreira on 2/21/2025 in #❓┊help
403 Forbidden in Production or Staging with FilamentPHP
use Filament\Models\Contracts\FilamentUser;


class User extends Authenticatable implements FilamentUser
use Filament\Models\Contracts\FilamentUser;


class User extends Authenticatable implements FilamentUser
5 replies
FFilament
Created by Leonardo Ferreira on 2/21/2025 in #❓┊help
403 Forbidden in Production or Staging with FilamentPHP
is the model implementing the FilamentUser contract?
5 replies
FFilament
Created by J3R1CH0 on 2/21/2025 in #❓┊help
Align the Search and View Docs in Table
3 replies
FFilament
Created by Abrar on 2/21/2025 in #❓┊help
Export download file not found on server
6 replies
FFilament
Created by Abrar on 2/21/2025 in #❓┊help
Export download file not found on server
If you're using the local or public, did you run
php artisan storage:link
php artisan storage:link
on the server?
6 replies
FFilament
Created by Abrar on 2/21/2025 in #❓┊help
Export download file not found on server
whats the filesystem you're using?
6 replies
FFilament
Created by TranceCode on 2/18/2025 in #❓┊help
How to delete image or images when deleting a record?
No prob 👍🏻
13 replies
FFilament
Created by TranceCode on 2/18/2025 in #❓┊help
How to delete image or images when deleting a record?
It's up to OP to decide. I just added a possible solution based on the code he provided.
13 replies
FFilament
Created by TranceCode on 2/18/2025 in #❓┊help
How to delete image or images when deleting a record?
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/delete#lifecycle-hooks I think you need to use the before. Delete the files before deleting the record from database.
13 replies
FFilament
Created by TranceCode on 2/18/2025 in #❓┊help
How to delete image or images when deleting a record?
shouldn't be before instead of after? Because it's after the record deletion, which means the record is already deleted, or filament keeps it in cache?
13 replies
FFilament
Created by Tieme on 2/13/2025 in #❓┊help
Import validation
Can you show the model and resource code by any chance?
14 replies
FFilament
Created by Tieme on 2/13/2025 in #❓┊help
Import validation
try requiring mapping
Imports\ImportColumn::make('from_email')
->requiredMapping()
->castStateUsing(function (?string $state): ?string {
if (blank($state) || (\Str::upper($state) === 'NULL')) {
return null;
}

return $state;
})
Imports\ImportColumn::make('from_email')
->requiredMapping()
->castStateUsing(function (?string $state): ?string {
if (blank($state) || (\Str::upper($state) === 'NULL')) {
return null;
}

return $state;
})
14 replies