﻿
   ErrorException 

  Attempt to read property "id" on null

  at app/Domains/Core/User/Models/User.php:282
    278ظûـ             $account = $item->account()->create([
    279ظûـ                 'company_id' => $item->company_id,
    280ظûـ                 'title' => $item->name . " #" . $item->code,
    281ظûـ                 'user_id' => \Auth::id(),
  ظئ£ 282ظûـ                 'parent_account_id' => company()->employeeAccount->id,
    283ظûـ                 'model' => User::class
    284ظûـ             ]);
    285ظûـ             $item->code = $account->code;
    286ظûـ             $item->account_id = $account->id;

  1   app/Domains/Core/User/Models/User.php:282
      Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}("Attempt to read property "id" on null", "/var/www/html/app/Domains/Core/User/Models/User.php")
      [2m+17 vendor frames [22m

  19  app/Domains/Accounting/Reminder/Services/ReminderServices.php:40
      Illuminate\Database\Eloquent\Model::__callStatic("firstOrCreate")

