English 中文(简体)
表格过滤能力问题
原标题:Enabling query string for table filtering

I want the URL to include a query string when I filter a table to share it with others easily. I watched a video that has been shared that demonstrated this feature, and I was wondering how I can enable it, as can be seen in the video https://github.com/filamentphp/filament/issues/7129#issuecomment-1661456931 I use table builder on a public page, not table builder inside a panel.

问题回答

为了便于在填充表中填充过滤器,您可使用<代码>与QueryString(<>/code>在<代码>可读部分上的<编码>方法。 这一方法把现有的过滤器、分类和假肢列为URL的掩体。

Here s an example of how you can use it:

use FilamentTablesComponentsTable;

Table::make()
    ->withQueryString()
    ->columns([
        // Define your columns here.
    ])
    ->records(function () {
        // Define your records here.
    });

在本法典中,with QueryString(>> 载于>。 这将包括目前南盟的表态,作为 que。

请注意,这一特征可在Farament诉2.5.0和以后查阅。 如果你重新使用旧的补缺,你可能需要升级,以利用这一特点。





相关问题
Table of calificacions in php and laravel

I created a table in order to show the name of the students, name of the subjects and the grade of the subject of the student I have the next code: this is the index part <form action="{{ ...

How to fix CORS for Capacitor/Quasar App in a Laravel API

I have an App built on top of Quasar and Capacitor, with an API built on top of Laravel. Everything works well on the dev environment until I build and install the app on my phone, then I keep getting ...

Laravel +Vuejs CORS issue

I am facing a dilemma wit the CORS issue. I have application that is configured as follow: API: https://abc.mydomain.com (laravel) front end: https://subdomain.mydomain.com(VueJS) Both applications ...

Laravel wrong redirecting to login page after login

In a multi tenancy with subdomain enviroment (http://zapburger.dex.local) when user fills login form with valid data and make login, laravel redirect to dashboard route (as expected) and then redirect ...