From 8925d85722789f224dfa8a712d65b7ed13c37bda Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Mon, 2 May 2022 10:12:27 +0430 Subject: [PATCH] feat: use `CanOwn` trait --- app/Ship/Parents/Models/Model.php | 3 ++- app/Ship/Parents/Models/UserModel.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Ship/Parents/Models/Model.php b/app/Ship/Parents/Models/Model.php index a2b862381..0232518cc 100644 --- a/app/Ship/Parents/Models/Model.php +++ b/app/Ship/Parents/Models/Model.php @@ -3,8 +3,9 @@ namespace App\Ship\Parents\Models; use Apiato\Core\Abstracts\Models\Model as AbstractModel; +use Apiato\Core\Traits\CanOwnTrait; abstract class Model extends AbstractModel { - + use CanOwnTrait; } diff --git a/app/Ship/Parents/Models/UserModel.php b/app/Ship/Parents/Models/UserModel.php index 073e0e771..9323866e3 100644 --- a/app/Ship/Parents/Models/UserModel.php +++ b/app/Ship/Parents/Models/UserModel.php @@ -3,6 +3,7 @@ namespace App\Ship\Parents\Models; use Apiato\Core\Abstracts\Models\UserModel as AbstractUserModel; +use Apiato\Core\Traits\CanOwnTrait; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; use Spatie\Permission\Traits\HasRoles; @@ -12,4 +13,5 @@ abstract class UserModel extends AbstractUserModel use Notifiable; use HasApiTokens; use HasRoles; + use CanOwnTrait; }