akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -3,6 +3,7 @@
namespace App\Jobs\Common;
use App\Abstracts\Job;
use App\Events\Auth\UserCreated;
use App\Interfaces\Job\ShouldUpdate;
use App\Models\Auth\Role;
use App\Models\Auth\User;
@ -66,6 +67,9 @@ class UpdateContact extends Job implements ShouldUpdate
$user = User::create($data);
$user->roles()->attach($customer_role);
$user->companies()->attach($data['company_id']);
$this->request->merge(['companies' => array($data['company_id'])]);
event(new UserCreated($user, $this->request));
$this->request['user_id'] = $user->id;
}