PHPackages                             diadal/passport - 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. [Framework](/categories/framework)
4. /
5. diadal/passport

ActiveLibrary[Framework](/categories/framework)

diadal/passport
===============

Convert client\_id to Uuid in Laravel Passport

1.0.1.x-dev(7y ago)75.2k↑16.7%1MITPHPPHP &gt;=7.1CI failing

Since Jul 30Pushed 5y ago2 watchersCompare

[ Source](https://github.com/diadal/passport)[ Packagist](https://packagist.org/packages/diadal/passport)[ RSS](/packages/diadal-passport/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Convert client\_id to Uuid in Laravel Passport

[](#convert-client_id-to-uuid-in-laravel-passport)

[![Build Status](https://camo.githubusercontent.com/64dda8063ad188edac7a2a8c1edfabe1f8a144286e511e3e2fde1547b11c0cf6/68747470733a2f2f7472617669732d63692e6f72672f64696164616c2f70617373706f72742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/diadal/passport)[![Total Downloads](https://camo.githubusercontent.com/1d7aae8f8993ec304914d8c07d9f07f6a6ee3ad8c0424b029f4095d4c3f970dd/68747470733a2f2f706f7365722e707567782e6f72672f64696164616c2f70617373706f72742f642f746f74616c2e737667)](https://packagist.org/packages/diadal/passport)[![License](https://camo.githubusercontent.com/9ed611d8e4df6f793559e2b42e0242222918fcd0e4c23caa307563629e7cd3fa/68747470733a2f2f706f7365722e707567782e6f72672f64696164616c2f70617373706f72742f6c6963656e73652e737667)](https://packagist.org/packages/diadal/passport)

Introduction
------------

[](#introduction)

Laravel Passport is an OAuth2 server and API authentication package that is simple and enjoyable to use. This Package will enable you you convert client id and client\_id to Uuid which is more secure and safe for production

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

[](#installation)

```
composer require diadal/passport
```

Laravel 5.5 hight auto discover package you may need to register in your config app.php under `providers`

```
Diadal\Passport\PassportServiceProvider::class,
```

Next in `app/Providers/AppServiceProvider.php` add `\Laravel\Passport\Passport::ignoreMigrations();` to `register`

```
public function register()
    {
        //....
        \Laravel\Passport\Passport::ignoreMigrations();
    }
```

Next

```
php artisan config:clear
```

To publish Cilent Uuid migration use this

```
php artisan vendor:publish --tag=passport-cilent-migrations
```

if no file published try

```
php artisan config:clear
```

and retry `php artisan vendor:publish --tag=passport-cilent-migrations`

### Note you can use this both

[](#note-you-can-use-this-both)

Migrate your Database
---------------------

[](#migrate-your-database)

```
php artisan migrate
```

Next In AuthServiceProvider @ `app/Providers/AuthServiceProvider.php` add `use Diadal\Passport\Passport;`

```
