© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
John Petrucci Blu

Refresh table contents with Action

Hi guys,
I've created a form with the input fields (start_date & end_date), a button with the "findAssets" Action and a livewire component that is the table for the results, but I don't know how can refresh table when clicking Search button and running query with parameters.

Page Action Code:
 public function findAssets() {
        $args = $this->form->getState();
        $start_date = Carbon::parse($args['start_date']);
        $end_date = Carbon::parse($args['end_date']);
        $results = Asset::findAvailableAssets($start_date, $end_date);

        dd($results);
  }
 public function findAssets() {
        $args = $this->form->getState();
        $start_date = Carbon::parse($args['start_date']);
        $end_date = Carbon::parse($args['end_date']);
        $results = Asset::findAvailableAssets($start_date, $end_date);

        dd($results);
  }


View Code:
<x-filament-panels::page>

  <div class="container w-1/2">
    {{ $this->form }}

    <div class="my-4">
      <x-filament::button wire:click="findAssets" color="info">
          Search
      </x-filament::button>
    </div>
  </div>

  @livewire('custom-table')

</x-filament-panels::page>
<x-filament-panels::page>

  <div class="container w-1/2">
    {{ $this->form }}

    <div class="my-4">
      <x-filament::button wire:click="findAssets" color="info">
          Search
      </x-filament::button>
    </div>
  </div>

  @livewire('custom-table')

</x-filament-panels::page>


Is there a way to send $results data to custom-table component or I should change approach?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

table action modal form refresh?
FilamentFFilament / ❓┊help
2y ago
Refresh Table after performed action in Widget
FilamentFFilament / ❓┊help
2y ago
Refresh table
FilamentFFilament / ❓┊help
3y ago
Refresh Table
FilamentFFilament / ❓┊help
3y ago