bardolf_6969
bardolf_6969
FFilament
Created by treii28 on 11/20/2024 in #❓┊help
Trying to modify filament form fields from custom Livewire Field component.
one thing.. looking at your step you are using ->reactive(), in filament v3 use ->live() instead. reactive was v1 and v2 I believe
10 replies
FFilament
Created by FranklySteve on 11/18/2024 in #❓┊help
How to order images when using Media Library
@FranklySteve as a workaround, I'm reversing the order when I output the media elsewhere. That way my preview looks like it is in ascending order even though it is in descending order. Not sure if that helps.
$mediaItems = $yourModel->getMedia();

$all = $mediaItems->sortByDesc('order_column')
$first = $MediaItems->last()
$mediaItems = $yourModel->getMedia();

$all = $mediaItems->sortByDesc('order_column')
$first = $MediaItems->last()
4 replies
FFilament
Created by Gush on 11/20/2024 in #❓┊help
ColumnSpan
check here for more information - https://filamentphp.com/docs/3.x/forms/layout/grid
7 replies
FFilament
Created by Gush on 11/20/2024 in #❓┊help
ColumnSpan
Grid::make(2)
->schema([
Input::make('first'),
Grid::make(2)
->schema([
Input::make('second'),
Input::make('third')
]),
Input::make('fourth'),
Input::make('fifth'),
])
Grid::make(2)
->schema([
Input::make('first'),
Grid::make(2)
->schema([
Input::make('second'),
Input::make('third')
]),
Input::make('fourth'),
Input::make('fifth'),
])
7 replies
FFilament
Created by Gush on 11/20/2024 in #❓┊help
ColumnSpan
break it up using grids or sections i.e.
7 replies
FFilament
Created by bardolf_6969 on 11/20/2024 in #❓┊help
Adding a progress bar to a filament form.
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{ state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }} }">
<progress max="100" x-bind:value="state" class="w-full" @progressUpdated="$refresh"></progress>
</div>
</x-dynamic-component>
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{ state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }} }">
<progress max="100" x-bind:value="state" class="w-full" @progressUpdated="$refresh"></progress>
</div>
</x-dynamic-component>
4 replies
FFilament
Created by bardolf_6969 on 11/20/2024 in #❓┊help
Adding a progress bar to a filament form.
this is my progress-bar blade
4 replies
FFilament
Created by FranklySteve on 11/18/2024 in #❓┊help
How to order images when using Media Library
I'd also like to know if there is a way to change this behaviour
4 replies
FFilament
Created by bahamasoul on 11/13/2024 in #❓┊help
Form builder - Programmatically step with Wizard?
I'm not sure what you mean the "Next" button on each page submits that page and goes to the next page automatically.
4 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
Don't forget the Livewire upload limit as that is the one I ALWAYS forget 🙂
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
but package_max_length limits your max upload size
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
No description
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
Did you choose Swoole or Frankenphp?
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
it depends on which engine you chose
37 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
there are settings to change that
37 replies
FFilament
Created by James Kenworthy on 11/17/2024 in #❓┊help
Dependent Select -> Form Fill Issue
Either add your relationship
Select::make('resource_id')->relationship('resource', 'name')
Select::make('resource_id')->relationship('resource', 'name')
just guessing on the title field. Or you will need to a
->beforeStateHydrate
->beforeStateHydrate
function to look up the values
4 replies
FFilament
Created by Sujay Barma on 11/14/2024 in #❓┊help
How to increase Max file upload size?
Also remember Livewire has a maximum file upload in the Livewire config as well
37 replies
FFilament
Created by bardolf_6969 on 11/17/2024 in #❓┊help
Custom property with Medialibrary
Or if I can't calculate the value is there a way I can add a checkbox to the uploaded images so the use can select the custom property value?
3 replies