PHPackages                             smskin/laravel-identity-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. smskin/laravel-identity-service

ActiveLibrary

smskin/laravel-identity-service
===============================

024PHP

Since Jun 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/smskin/laravel-idenity-service)[ Packagist](https://packagist.org/packages/smskin/laravel-identity-service)[ RSS](/packages/smskin-laravel-identity-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

About Identity service library
==============================

[](#about-identity-service-library)

Identity service is a service that allows you to organize authorization in a laravel application through a common remote server. This allows you to organize a multi-service architecture with end-to-end authorization.

Identity service library consists of 2 parts:

- identity service - this package. Master auth service.
- identity service client - a client that allows application users to log in through a shared service ()

Installation
------------

[](#installation)

1. Run `composer require smskin/laravel-identity-service`
2. Run `php artisan vendor:publish --tag=identity-service`
3. Run `php artisan vendor:publish --tag=identity-service-client`
4. Configure identity service with `identity-service.php` in config folder and environments
5. Configure identity service client with `identity-service-client.php` in config folder and environments (read more in client readme file - )

Customization
-------------

[](#customization)

This library support replacing default User model to your. For this you need update your User model and change config file (`identity-service.php`).

1. In User model you need implement `HasIdentity` interface and add `IdentityTrait` trait
2. Change path to User model in config file

Example of config file

```
...
'classes' => [
    'models' => [
        'user' => User::class,
    ]
],
...
```

Example of User model

```
