Explorar o código

changed client sort order

= %!s(int64=4) %!d(string=hai) anos
pai
achega
242aa9c990
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Models/SupplyOrder.php

+ 5 - 0
app/Models/SupplyOrder.php

@@ -8,6 +8,11 @@ class SupplyOrder extends Model
 {
     protected $table = 'supply_order';
 
+    public function getRouteKeyName()
+    {
+        return 'uid';
+    }
+
     public function client()
     {
         return $this->hasOne(Client::class, 'id', 'client_id');