ソースを参照

wip: fix DefaultSettingService.php

3.x
wallo 3年前
親
コミット
06dfe6e391
1個のファイルの変更、2行の追加、2行の削除
  1. 2
    2
      app/Services/DefaultSettingService.php

+ 2
- 2
app/Services/DefaultSettingService.php ファイルの表示

31
             'purchase_tax_id' => $purchaseTax->id,
31
             'purchase_tax_id' => $purchaseTax->id,
32
             'sales_discount_id' => $salesDiscount->id,
32
             'sales_discount_id' => $salesDiscount->id,
33
             'purchase_discount_id' => $purchaseDiscount->id,
33
             'purchase_discount_id' => $purchaseDiscount->id,
34
-            'created_by' => $company->owner->id,
35
-            'updated_by' => $company->owner->id,
34
+            'created_by' => Auth::id(),
35
+            'updated_by' => Auth::id(),
36
         ];
36
         ];
37
 
37
 
38
         DefaultSetting::create($defaultSettings);
38
         DefaultSetting::create($defaultSettings);

読み込み中…
キャンセル
保存