Editorial question37.6K views4,441 votes0 answers4,340 following
AI-generatedUnexpected NULL rows and sort direction loss when sorting FilamentPHP table columns by relationship attributes
When configuring a FilamentPHP table column to sort by a related model attribute using $table->column('user.name', 'User Name')->sortable() , the goal is to understand if the generated query includes the necessary join for the relationship and how rows with null foreign keys are ordered. Uncertainty remains about whether the join is added automatically