瀏覽代碼

Sort by is_open - open ones first

Vijayakrishnan 4 年之前
父節點
當前提交
0736617853
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Models/Client.php

+ 1 - 0
app/Models/Client.php

@@ -283,6 +283,7 @@ class Client extends Model
     public function tickets()
     public function tickets()
     {
     {
         return $this->hasMany(Ticket::class, 'client_id', 'id')
         return $this->hasMany(Ticket::class, 'client_id', 'id')
+            ->orderBy('is_open', 'desc')
             ->orderBy('created_at', 'desc');
             ->orderBy('created_at', 'desc');
     }
     }