diff --git a/src/Auth.php b/src/Auth.php index 6867229..afc01d5 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -5,6 +5,7 @@ use Fintech\Auth\Services\AuditService; use Fintech\Auth\Services\FavouriteService; use Fintech\Auth\Services\IdDocTypeService; +use Fintech\Auth\Services\IpAddressService; use Fintech\Auth\Services\OneTimePinService; use Fintech\Auth\Services\PasswordResetService; use Fintech\Auth\Services\PermissionService; @@ -13,6 +14,7 @@ use Fintech\Auth\Services\RoleService; use Fintech\Auth\Services\TeamService; use Fintech\Auth\Services\UserService; +use Illuminate\Contracts\Foundation\Application; class Auth { @@ -94,19 +96,19 @@ public function audit() } /** - * @return IdDocTypeService + * @return FavouriteService */ - public function idDocType() + public function favourite() { - return app(IdDocTypeService::class); + return app(FavouriteService::class); } /** - * @return FavouriteService + * @return IpAddressService */ - public function favourite() + public function ipAddress() { - return app(FavouriteService::class); + return app(IpAddressService::class); } //** Crud Service Method Point Do not Remove **// diff --git a/src/Facades/Auth.php b/src/Facades/Auth.php index 433ec05..bad9224 100644 --- a/src/Facades/Auth.php +++ b/src/Facades/Auth.php @@ -4,7 +4,7 @@ use Fintech\Auth\Services\AuditService; use Fintech\Auth\Services\FavouriteService; -use Fintech\Auth\Services\IdDocTypeService; +use Fintech\Auth\Services\IpAddressService; use Fintech\Auth\Services\OneTimePinService; use Fintech\Auth\Services\PasswordResetService; use Fintech\Auth\Services\PermissionService; @@ -25,8 +25,8 @@ * @method static PasswordResetService passwordReset() * @method static PinResetService pinReset() * @method static AuditService audit() - * @method static IdDocTypeService idDocType() * @method static FavouriteService favourite() + * @method static IpAddressService ipAddress() * // Crud Service Method Point Do not Remove // * * @see \Fintech\Auth\Auth diff --git a/src/Interfaces/IpAddressRepository.php b/src/Interfaces/IpAddressRepository.php new file mode 100644 index 0000000..4fbf001 --- /dev/null +++ b/src/Interfaces/IpAddressRepository.php @@ -0,0 +1,39 @@ +auditRepository->list($filters); + + } + + public function find($id, $onlyTrashed = false) + { + return $this->auditRepository->find($id, $onlyTrashed); + } + + public function destroy($id) + { + return $this->auditRepository->delete($id); + } +}