jop00
jop00
FFilament
Created by jop00 on 11/25/2023 in #❓┊help
SimplePage form not rendering submit button
I have a simple page with a small form but the submit button it's not rendering.
<x-filament-panels::page.simple>
<x-filament-panels::form wire:submit="create">

{{ $this->form }}

<x-filament-panels::form.actions
:actions="$this->getCachedFormActions()"
:full-width="true"
/>

</x-filament-panels::form>
</x-filament-panels::page.simple>
<x-filament-panels::page.simple>
<x-filament-panels::form wire:submit="create">

{{ $this->form }}

<x-filament-panels::form.actions
:actions="$this->getCachedFormActions()"
:full-width="true"
/>

</x-filament-panels::form>
</x-filament-panels::page.simple>
If I add this, the button it's not stylished, just plain text.
<x-button type="submit" class="mt-4">
Create
</x-button>
<x-button type="submit" class="mt-4">
Create
</x-button>
4 replies
FFilament
Created by jop00 on 9/21/2023 in #❓┊help
Custom table relationship count
Hello, I need to filter the realtionship count of a column.
Tables\Columns\TextColumn::make('comments_count')->counts(fn (Builder $query) => $query->withCount('comments')->where('status_id', 1)) ->sortable(),
Tables\Columns\TextColumn::make('comments_count')->counts(fn (Builder $query) => $query->withCount('comments')->where('status_id', 1)) ->sortable(),
What am I doing wrong?
2 replies
FFilament
Created by jop00 on 9/20/2023 in #❓┊help
Group table by year
Is it possible to group a table by 'year' from a date column?
7 replies
FFilament
Created by jop00 on 9/15/2023 in #❓┊help
Select field not showing new created record using modal
When I create a new record using the create modal of a select field with this code I get this error Undefined property: stdClass::$:
)->createOptionUsing(function ($data) {
$newProducer = new Producer();
$newProducer->fill($data);
$newProducer->user_id = Auth::id();
$newProducer->save();
return $newProducer->id;
)->createOptionUsing(function ($data) {
$newProducer = new Producer();
$newProducer->fill($data);
$newProducer->user_id = Auth::id();
$newProducer->save();
return $newProducer->id;
11 replies
FFilament
Created by jop00 on 9/7/2023 in #❓┊help
New resource custom page listed on nagitaion
When I create a custom page for a resource, this is not listed on the navigation menu. It's working for the non resource custom page, though.
9 replies
FFilament
Created by jop00 on 9/6/2023 in #❓┊help
Hide relationship manager table from Edit view
Hi I want to hide the relationship manager table from the Edit view. I can't find how to do it.
Once a table and form have been defined for the relation manager, visit the Edit or View page of your resource to see it in action.
8 replies
FFilament
Created by jop00 on 9/6/2023 in #❓┊help
Reusing tables and forms from Resources
Is it possible to reuse a table/form from Resources on the public side of the web?
13 replies