onursahindur
onursahindur
FFilament
Created by onursahindur on 4/29/2024 in #❓┊help
UserMenuItems width wrong
No description
5 replies
FFilament
Created by onursahindur on 2/16/2024 in #❓┊help
When using a modal, If I send a notification it appears under the modal
No description
3 replies
FFilament
Created by onursahindur on 2/13/2024 in #❓┊help
Is it possible to add a default emptyStateHeading for all the tables?
Hello I know how to edit emptyStateHeading explained here https://filamentphp.com/docs/3.x/tables/empty-state But I want to ask if it is possible to give a default title for every table I use in system? I want to show for example "No content" for all the tables I use.
4 replies
FFilament
Created by onursahindur on 8/18/2023 in #❓┊help
sidebar.end not working on remote server, but works on localhost
12 replies
FFilament
Created by onursahindur on 8/1/2023 in #❓┊help
FileUpload disable listing for large amount of files
9 replies
FFilament
Created by onursahindur on 6/15/2023 in #❓┊help
How to show notification after 3D secure payment completed from a POST request?
6 replies
FFilament
Created by onursahindur on 5/27/2023 in #❓┊help
Radio field reactive strange bug when using from custom modal with HasForms
4 replies
FFilament
Created by onursahindur on 5/25/2023 in #❓┊help
Price list for subscriptions
9 replies
FFilament
Created by onursahindur on 5/22/2023 in #❓┊help
Hide Record id from url on edit resource
21 replies
FFilament
Created by onursahindur on 5/18/2023 in #❓┊help
Select field with Checkbox
Hello again all, I want to disable a basic select field when checkbox is checked, I made both components reactive and getting the checkbox component's state in disabled closure correctly, even Select disabled function gets called after checkbox updated But the even if checkbox disabled state returning false, select disabled state is not changing. It stays same as if the first page load state. Am I missing something? Here is my code; Checkbox::make('send_all_users') ->label('Send to everyone') ->inline() ->reactive(), Select::make('branch_ids') ->reactive() ->label('Choose branch ids') ->hint('Seçili şube üyelerine gönderin') ->multiple() ->searchable() ->options(fn () => Branch::where('corp_id', $authUser->corp_id) ->get() ->pluck('title', 'id') ) ->disabled(function (Closure $get) { error_log('send_all_users: ' . !boolval($get('send_all_users'))); return !boolval($get('send_all_users')); }),
5 replies
FFilament
Created by onursahindur on 5/18/2023 in #❓┊help
Actions on Custom Widgets on resource page
9 replies
FFilament
Created by onursahindur on 5/15/2023 in #❓┊help
Select field hasMany relation
Hello all, I am trying to achieve a select field relation with a hasMany relation. I have one Model called Content and one model ContentVisibility ContentVisibility holds a content_id, with a type field which can be either be BRANCH or COMMUNITY in Content.php I have relations defined as; public function visibilities(): HasMany { return $this->hasMany(ContentVisibility::class, 'content_id', 'id'); } also in ContentVisibility.php as; public function content(): BelongsTo { return $this->belongsTo(Content::class, 'id', 'content_id'); } I want to Make two select fields in "EditContent" resource which edits the relations. I came up like these; Select::make('branch_visibility_id') ->label('Show only to this branches...') ->multiple() ->options( ... ) ->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::BRANCH)) ->searchable(), Select::make('community_visibilities') ->label('Show only to this communities...') ->multiple() ->options(...) ->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::COMMUNITY)) ->searchable(), But as far as I understand "relationship" for select searches for a BelongsToMany relation, which I think it is not suitable for this situation. Did I missed something? Thanks.
13 replies
FFilament
Created by onursahindur on 5/12/2023 in #❓┊help
How can I add a label near the reorder button in table?
4 replies
FFilament
Created by onursahindur on 5/9/2023 in #❓┊help
SpatieMediaLibraryPlugin with getTableQuery()
Hello all, I am using SpatieMediaLibraryPlugin for media collections. I have a user model where admin's can hold PDF, Word or Excel documents for a specific user. I want to show these files on a table but could not find how I can query the Media class in getTableQuery() function. Does anyone know a trick for it? Thanks.
4 replies
FFilament
Created by onursahindur on 5/6/2023 in #❓┊help
Run Forms\Components\Select::..->options(..) after another Forms\Components\Select filled
3 replies
FFilament
Created by onursahindur on 5/5/2023 in #❓┊help
Conditional Table Row Actions
18 replies