Skip to content

Commit

Permalink
feat: use CanOwn trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed May 2, 2022
1 parent 4569a54 commit 8925d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Ship/Parents/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions app/Ship/Parents/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -12,4 +13,5 @@ abstract class UserModel extends AbstractUserModel
use Notifiable;
use HasApiTokens;
use HasRoles;
use CanOwnTrait;
}

0 comments on commit 8925d85

Please sign in to comment.