Steps to reproduce:
-
In users migration table:
$table->foreignId('manager_id')->nullable()->constrained('users');
-
In User model:
public function manager(): BelongsTo
{
return $this->belongsTo(User::class, 'manager_id')->select('id', 'fullname');
}
-
Purity sorting string : 'group.name:asc' -> no effect
All other sorting types on relation are working.
I tried with another Model (Customer that belongs to a group where group is a Customer), and this is the same problem.