renatoalvarez
renatoalvarez
Explore posts from servers
FFilament
Created by renatoalvarez on 11/14/2023 in #❓┊help
spatie tags column arent serchable
Hi, I'm trying to use ->searchable in a spatie tags column but it is not possible, im getting this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tags' in 'where clause' SpatieTagsColumn::make('tags') ->searchable() I can create and view the tags correctly. what could I do?
1 replies
FFilament
Created by renatoalvarez on 7/22/2023 in #❓┊help
visible block table action
Hi, im trying to use ->visible() on a table action but when it is present my ->action method doesnt not execute its code, and example:
Tables\Actions\Action::make('entregas')
->icon('heroicon-o-clipboard-check')
->action(function (Semana $record) {
\dd($record);
})
->visible(fn($record) => $record->actividades_count > 0),
Tables\Actions\Action::make('entregas')
->icon('heroicon-o-clipboard-check')
->action(function (Semana $record) {
\dd($record);
})
->visible(fn($record) => $record->actividades_count > 0),
3 replies
FFilament
Created by renatoalvarez on 7/16/2023 in #❓┊help
html + limit in text column
6 replies
FFilament
Created by renatoalvarez on 6/12/2023 in #❓┊help
Share components between Resources
Hi, I would like to config my Form and Table components in different Resources to avoid repeated code. Form and Table will have these standar components and their own components as usual. How could achive that? Thanks in advance
3 replies
FFilament
Created by renatoalvarez on 5/12/2023 in #❓┊help
Error when installing Spatie Settings
Hi, Im trying to install with: composer require filament/spatie-laravel-settings-plugin:"^2.0" but I get this error: Problem 1 - filament/spatie-laravel-settings-plugin 2.x-dev requires filament/filament 2.x-dev -> found filament/filament[2.x-dev] but the package is fixed to v2.17.38 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - filament/spatie-laravel-settings-plugin v2.4.42 requires filament/filament v2.4.42 -> found filament/filament[v0.1.0, v1.0.0, ..., 1.x-dev, v2.0.0-beta1, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint. - filament/spatie-laravel-settings-plugin v2.4.43 requires filament/filament v2.4.43 -> found filament/filament[v0.1.0, v1.0.0, ..., 1.x-dev, v2.0.0-beta1, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint. - filament/spatie-laravel-settings-plugin v2.4.44 requires filament/filament v2.4.44 -> found filament/filament[v0.1.0, v1.0.0, ..., 1.x-dev, v2.0.0-beta1, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint. - filament/spatie-laravel-settings-plugin v2.4.45 requires filament/filament v2.4.45 -> found filament/filament[v0.1.0, v1.0.0, ..., 1.x-dev, v2.0.0-beta1, ..., 2.x-dev, v3.0.0-alpha1, ..., 3.x-dev] but it does not match the constraint. ......
2 replies
FFilament
Created by renatoalvarez on 5/12/2023 in #❓┊help
Load spinner in relation manager
charge spinner in relationship manager Hi, it is possible to have a load spinner when clicked on a relationship manager? I found that in some cases it takes several seconds to load data and there is no feedback to the user. tnx
6 replies
FFilament
Created by renatoalvarez on 5/4/2023 in #❓┊help
Filter relation manager when clic in his parent
3 replies
FFilament
Created by renatoalvarez on 3/18/2023 in #❓┊help
$recordTitleAttribute relationship
Hi, it is possible to access to a relationship like this: protected static ?string $recordTitleAttribute = 'course.name';
3 replies
FFilament
Created by renatoalvarez on 3/14/2023 in #❓┊help
ignoreRecord: true
Hello, I'm trying to use ignoreRecord: true in a relation manager but it is ignored Forms\Components\Select::make('estudiante_id') ->required() ->debounce(500) ->columnSpanFull() ->label('Estudiante') ->inlineLabel('false') ->placeholder('Seleccione o busque a un estudiante') ->relationship('estudiante', 'carnet_nombres_apellidos') ->searchable(['carnet', 'nombres', 'apellidos']) ->unique(ignoreRecord: true)
10 replies