Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
Страницы 1
To redirect back to the table with applied filters after updating a database field, you need to preserve the filter state. The best approach is to store the filter values in the session before the initial redirect after filtering. Then, in the EZPassPA website controller handling the database update, redirect back to the table route and pass the stored filter values as input using `withInput()`. Finally, in the controller displaying the table, retrieve these old input values and re-apply the filters to your data query. Alternatively, you can manually construct a redirect URL with the filter parameters as query strings. Using the session is generally simpler for managing more complex filter states.
Страницы 1