Commit Graph
462 Commits
Author SHA1 Message Date
Dan Harrin 029f358b2a Improve make:theme command UX (#18663)
* feature: Improve make:theme command

* fix tests

* fix edge case without path() method
2025-12-07 22:46:26 +00:00
e20095e572 feat: expose table records count (#18632)
* feat: expose table records count

* chore: fix code style

* add docs

* fix: order data arrays in alphabetical order by key

* Remove tableRecordsCount from parameters

* Fix typo in widgets documentation

---------

Co-authored-by: mansoorkhan96 <mansoorkhan96@users.noreply.github.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-12-05 08:57:47 +00:00
Carlos CarrettaandDan Harrin 594d63765e Add ability to use table select on attach action (#18352)
* Attach tables select

* add table select to attach action

* fix issues when attaching multiple, and ignoring already selected values

* composer cs run

* Add to docs

* add tests

* clean up

* fix queries

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-12-02 20:55:41 +00:00
Dan Harrin 20f74b57db Update 02-testing-resources.md 2025-11-30 18:28:51 +00:00
Dan Harrin 8e150b99cb Update broken docs links 2025-11-28 10:34:53 +00:00
Hichem Taboukouyout a3ddf78b2c Update Tailwind CSS version in upgrade guide (#18572)
Signed-off-by: Hichem Taboukouyout <hichem.taboukouyout@hichemtab-tech.me>
2025-11-22 09:30:59 +00:00
Dan Harrin c0c41bb624 Update 02-installation.md 2025-11-22 09:30:45 +00:00
Angus McRitchie 91ebdd81db Added "Publishing configuration" file section to the installation docs (#18549)
* Added publishing the configuration file section to the installation docs

* moved config section to the bottom
2025-11-20 11:19:53 +00:00
Angus McRitchie ce1ee16bcf fixed various typos in docs (#18548) 2025-11-20 11:18:05 +00:00
Al Nahian abf2a658ba Fix links for color and icon interfaces in enums doc (#18380) 2025-11-01 21:44:12 +00:00
PatrickandDan Harrin 258b7d44aa Correct the link to the schemas testing page (#18355)
* Update 01-overview.md

Correct the link to the schemas testing page

Signed-off-by: Patrick <privat@skyraptor.eu>

* Update 01-overview.md

---------

Signed-off-by: Patrick <privat@skyraptor.eu>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-30 10:47:41 -04:00
Craig PotterandDan Harrin 2d9d17e636 Update component type in schema test documention (#18332)
* Update component type in schema tests

Signed-off-by: Craig Potter <me@craigpotter.co.uk>

* Update docs/10-testing/04-testing-schemas.md

Signed-off-by: Dan Harrin <git@danharrin.com>

---------

Signed-off-by: Craig Potter <me@craigpotter.co.uk>
Signed-off-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-29 10:14:09 -04:00
Anton Shever 4a3d9ca8d9 Clarify Tailwind CSS usage in plugin documentation (#18327)
Updated documentation to clarify Tailwind CSS integration for plugin developers and improved formatting.

Signed-off-by: Anton Shever <anton.shever96@gmail.com>
2025-10-29 09:10:06 -04:00
Al Nahian 7f18e67fee docs: fix broken and outdated documentation links (#18281) 2025-10-20 14:07:38 +01:00
Dennis KochandDan Harrin f25ec70c29 [4.x] Mounted action modal test helpers (#18195)
* Mounted action modal test helpers

* docs: Update modal content assertions

* Code style

* Add stubs and fix phpstan

* Get partial html from nested actions

* Remove getMountedActionModalHtml method

Removed internal helper method for modal content.

Signed-off-by: Dan Harrin <git@danharrin.com>

* Refactor getMountedActionModalHtml method

Signed-off-by: Dan Harrin <git@danharrin.com>

---------

Signed-off-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-14 09:52:12 +01:00
Florian BlaserandDan Harrin 37e30312f4 Add globalSearchSort property to control resource order in global search (#18159)
* Add globalSearchSort property to control resource order in global search (#12954)

* Fix style (composer cs)

* Update GlobalSearchTest.php

* Update DefaultGlobalSearchProvider.php

* Update 10-global-search.md

* Update DefaultGlobalSearchProvider.php

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-11 22:04:54 +01:00
Bram WubsandDan Harrin a4851f2a7a Allow for changing the alignment of actions on a Page component (#18117)
* Make it possible to change the header actions alignment

* Update docs

* CS

* clean up

* Update header.css

* Update theme.css

* fix order of actions

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-11 21:22:36 +01:00
Al Nahian 0634d75060 Change $activeNavigationIcon type to include BackedEnum (#18163)
Updated the type of $activeNavigationIcon to allow BackedEnum.

https://github.com/filamentphp/filament/blob/ee05680b3942783e01a1ad07eb977a84aae1ea04/packages/panels/src/Resources/Resource/Concerns/HasNavigation.php#L30

Signed-off-by: Al Nahian <a.alnahian2003@gmail.com>
2025-10-11 20:24:31 +01:00
Ahmed Fawky 8d15cc36b4 Update 04-clusters.md (#18120)
Namespace correction.

Signed-off-by: Ahmed Fawky <ahmedfawky@gmail.com>
2025-10-07 20:15:13 +01:00
Guilherme SaadeandDan Harrin ce4fbd1576 [4.x] Customizable global search, database notifications and user menu position (#18064)
* feat: customizable global search and user position

* docs

* start cleaning up

* also include db notifications

* cs

* clean up

* Update Filament.php

* docs

* Update sidebar.blade.php

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-04 15:19:00 +01:00
BenandDan Harrin c8abd63422 Add toggle all columns for testing (#18013)
* Toggle all table columns

* Add docs for toggling all columns

* chore: fix code style

* clean up

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-04 14:14:49 +01:00
3c72e3b557 feat: Allow the tenant menu to be searched (#18029)
* feat: Allow the tenant menu to be searched

* Define tenant name earlier

* chore: fix code style

* clean up

* automatically enable for more than 10 tenants

---------

Co-authored-by: jonerickson <jonerickson@users.noreply.github.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-10-04 14:08:01 +01:00
Dan Harrin 997e6055f0 Update 03-tenancy.md 2025-10-04 12:13:13 +01:00
Balboa Codes c7ddd1bde4 wip (#18003) 2025-09-30 07:38:09 +01:00
Patryk Kudlik 9895ca5a97 Fix broken link by removing .html from Laravel Spark installation URL (#17990) 2025-09-29 12:01:02 +01:00
Nolan NordlundandDan Harrin e8f47efa46 User menu and search in sidebar when topbar is disabled (#17048)
* Added user menu to sidebar

* Toggle sidebar

* Improved user menu collapsed styling

* Improved collapse behavior

* Restored missing alias

* Add global search if no topbar

* Improved collapse, added search to sidebar

* Styling

* Collapse

* Adding notification trigger to sidebar

* Use h-dvh

* cs & build

* start cleaning up

* remove new lang string

* move tenant menu and global search outside of fi-sidebar-nav

* notifications refactor

* clean up user menu

* clean up new collapse sidebar button

* clean up

* Update topbar.blade.php

* Update sidebar.blade.php

* docs

* final fixes

* fix alignment and button visibility issues

* Update theme.css

* fix collapse button alignment

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-28 21:14:04 +01:00
Assem Alwaseai c184d0c46e Update 02-listing-records.md (#17967) 2025-09-27 07:29:54 +01:00
Dan Harrin c2e5befb1b feature: Empty state (#17932)
* feature: Empty state

* docs

* Update empty-state.blade.php

* add screenshot
2025-09-24 23:29:04 +01:00
Kenneth SeseandDan Harrin 5d509911b2 Add table header cell render hook (#17895)
* renderhooks

* indenting

* add hasRenderHook method

* remove table cell renderhook

* remove table cell renderhook view

* implement hasRenderHook check

* rename & document hook

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-24 17:28:12 +01:00
d91c365104 Update testing form actions docs with new form-actions key (#17887)
* updates docs

* Update 05-testing-actions.md

* Document testing create and edit form actions

Added sections for testing create and edit form actions using TestAction in the documentation.

* Modifies action section to essentially a footnote

Removed example code for testing form actions and updated references to documentation for testing create and edit form actions.

* clean up and reduce duplication

---------

Co-authored-by: mrkbingham <mark.bingham@interworks.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-24 17:27:52 +01:00
Dan Harrin 84288a89b1 Add Aside component import to testing tables doc 2025-09-22 08:34:13 +01:00
JT Smith 20285ec298 fix: typo in 02-installation.md (#17883) 2025-09-21 09:21:07 +01:00
Corwin 15d27058f1 fix: fixed broken links on custom pages page (#17873) 2025-09-20 12:46:36 +01:00
MerdinandDan Harrin 22fc471a80 Update 03-testing-tables.md - "Testing that a column can be sorted" (#17871)
* Issue #17817: Update 03-testing-tables.md - "Testing that a column can be sorted"

Currently, the documentation includes a flaky test as an example for sorting a column. This is because Filament sorts its table records according to the underlying database strategy.

Previously, the documentation suggested using the `sortBy()` method on the collection returned by the factory. However, this approach does not account for differences in how various databases handle sorting, which can lead to inconsistent test results.

With this commit, the documentation has been updated.
The example test now uses a stable approach that explicitly orders records through the database query, ensuring reliable behavior across different database systems.

Signed-off-by: Merdin <me@merdin.dev>

* Update 03-testing-tables.md - "Testing that a column can be sorted"

Improve query

Signed-off-by: Merdin <me@merdin.dev>

* Update 03-testing-tables.md

Change `orderBy('title', 'desc')` to `orderByDesc('title')` to improve code readability.

Signed-off-by: Merdin <me@merdin.dev>

* Update 03-testing-tables.md

Signed-off-by: Merdin <me@merdin.dev>

* Refactor post sorting in test to use query builder

Signed-off-by: Dan Harrin <git@danharrin.com>

* Fix sorting order for posts by title

Signed-off-by: Dan Harrin <git@danharrin.com>

---------

Signed-off-by: Merdin <me@merdin.dev>
Signed-off-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-20 12:46:02 +01:00
8f9801f306 Add action render hooks (#17355)
* add action render hooks

* update docs

* update docs

* chore: fix code style

* clean up

---------

Co-authored-by: dvarilek <dvarilek@users.noreply.github.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
2025-09-18 21:57:19 +01:00
M. D. 3791361412 docs: Fixes syntax error 2025-09-17 03:18:34 +02:00
Dan Harrin c84f15ae7f Remove Laravel 10 docs refs 2025-09-16 17:15:55 +01:00
Dan Harrin d49848ada7 Merge pull request #17386 from ace-of-aces/patch-1
[4.x] Fix(docs): Add missing form class to singular resources example
2025-09-14 16:42:11 +01:00
Dan Harrin 392f3e3bbe Update 09-singular.md 2025-09-14 16:41:22 +01:00
Dan Harrin 720f5ba73d fix: Column span docs & API inconsistency 2025-09-11 14:13:34 +01:00
f-baghli 9967b589eb fix: 03-resources 01-overview.md wrong path in example, v4 folders structure
Replaced
use App\Filament\Resources\Customers\Schemas\CustomersTable;
with
use App\Filament\Resources\Customers\Tables\CustomersTable;
2025-09-09 00:22:42 +01:00
Dan Harrin 4fed03cf2b Merge pull request #17633 from dissto/patch-1
Adjust example test for testing schema components
2025-09-03 11:33:24 +01:00
Dan Harrin de62176c47 Update 04-testing-schemas.md 2025-09-03 11:32:50 +01:00
M. D. 4c5e6df349 Refactor comments section tests for schema components
The shown example would lead to an error:

```php
 Livewire\Features\SupportTesting\Testable::{closure:Filament\Schemas\Testing\TestsSchemas::assertSchemaComponentExists():25}(): Argument #2 ($schema) must be of type ?string, Closure given,
```

because the 2nd parameter is expected to be a `Schema`

I suppose there is two options now, adding `null` as 2nd parameter in the examples or simply using named arguments. Named arguments looked like the better approach 😊
2025-09-03 12:21:07 +02:00
Jürgen 679a337e6c Fix typo in 07-managing-relationships.md 2025-09-02 21:49:04 +02:00
Dan Harrin 2622a19cc8 Introduce more consistency 2025-08-31 14:30:37 +01:00
Dan Harrin 85912b6e17 Merge pull request #17575 from rajatpatelz/fix/broken-authorization-link
[4.x] Fix(docs) broken authorization link on users overview page
2025-08-31 12:51:27 +01:00
Rajat Patel d755a4541e Merge branch '4.x' into fix/broken-authorization-link 2025-08-30 11:41:53 +05:30
Rajat Patel cd3c75e3d8 fix broken authorization link on users overview page 2025-08-30 11:30:18 +05:30
Ryan Ginnow c14d8fe8dd fix: link to "optimizing local development" 2025-08-28 13:36:28 -04:00