diff --git a/src/Models/Permission.php b/src/Models/Permission.php index 129da07..1d33b37 100644 --- a/src/Models/Permission.php +++ b/src/Models/Permission.php @@ -25,8 +25,6 @@ class Permission extends Model implements Auditable protected $guarded = ['id']; - - protected $casts = []; /* diff --git a/src/Models/Profile.php b/src/Models/Profile.php index 042a8cc..4f3439b 100644 --- a/src/Models/Profile.php +++ b/src/Models/Profile.php @@ -7,11 +7,6 @@ use Illuminate\Database\Eloquent\SoftDeletes; use OwenIt\Auditing\Contracts\Auditable; -/** - * Class Profile - * @package Fintech\Auth\Models - * - */ class Profile extends Model implements Auditable { use BlameableTrait; diff --git a/src/Models/Role.php b/src/Models/Role.php index 769eedf..eefac52 100644 --- a/src/Models/Role.php +++ b/src/Models/Role.php @@ -25,8 +25,6 @@ class Role extends Model implements Auditable protected $guarded = ['id']; - - protected $casts = []; /* diff --git a/src/Models/Team.php b/src/Models/Team.php index 9e95ec0..8d22149 100644 --- a/src/Models/Team.php +++ b/src/Models/Team.php @@ -25,8 +25,6 @@ class Team extends Model implements Auditable protected $guarded = ['id']; - - protected $casts = []; /* diff --git a/src/Models/User.php b/src/Models/User.php index 0da5555..0febfde 100644 --- a/src/Models/User.php +++ b/src/Models/User.php @@ -8,11 +8,6 @@ use Laravel\Sanctum\HasApiTokens; use OwenIt\Auditing\Contracts\Auditable; -/** - * Class User - * @package Fintech\Auth\Models - * @property-read Profile $profile - */ class User extends Authenticatable implements Auditable { use BlameableTrait; diff --git a/src/RepositoryServiceProvider.php b/src/RepositoryServiceProvider.php index 01d8254..b55b2af 100644 --- a/src/RepositoryServiceProvider.php +++ b/src/RepositoryServiceProvider.php @@ -3,19 +3,19 @@ namespace Fintech\Auth; use Fintech\Auth\Interfaces\PermissionRepository; +use Fintech\Auth\Interfaces\ProfileRepository; use Fintech\Auth\Interfaces\RoleRepository; use Fintech\Auth\Interfaces\TeamRepository; -use Fintech\Auth\Interfaces\ProfileRepository; use Fintech\Auth\Interfaces\UserRepository; use Fintech\Auth\Repositories\Eloquent\PermissionRepository as EloquentPermissionRepository; +use Fintech\Auth\Repositories\Eloquent\ProfileRepository as EloquentProfileRepository; use Fintech\Auth\Repositories\Eloquent\RoleRepository as EloquentRoleRepository; use Fintech\Auth\Repositories\Eloquent\TeamRepository as EloquentTeamRepository; -use Fintech\Auth\Repositories\Eloquent\ProfileRepository as EloquentProfileRepository; use Fintech\Auth\Repositories\Eloquent\UserRepository as EloquentUserRepository; use Fintech\Auth\Repositories\Mongodb\PermissionRepository as MongodbPermissionRepository; +use Fintech\Auth\Repositories\Mongodb\ProfileRepository as MongodbProfileRepository; use Fintech\Auth\Repositories\Mongodb\RoleRepository as MongodbRoleRepository; use Fintech\Auth\Repositories\Mongodb\TeamRepository as MongodbTeamRepository; -use Fintech\Auth\Repositories\Mongodb\ProfileRepository as MongodbProfileRepository; use Fintech\Auth\Repositories\Mongodb\UserRepository as MongodbUserRepository; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Support\ServiceProvider; diff --git a/src/Services/ProfileService.php b/src/Services/ProfileService.php index 6b6f70f..a90835e 100644 --- a/src/Services/ProfileService.php +++ b/src/Services/ProfileService.php @@ -6,14 +6,13 @@ /** * Class UserProfileService - * */ class ProfileService { private $profileRepository; + /** * UserProfileService constructor. - * @param ProfileRepository $profileRepository */ public function __construct(ProfileRepository $profileRepository) {