app/Passport/PersonalAccessClient.php
<?php
namespace App\Passport;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Laravel\Passport\PersonalAccessClient as PassportPersonalAccessClient;
class PersonalAccessClient extends PassportPersonalAccessClient
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'oauth_personal_access_clients';
/**
* The guarded attributes on the model.
*
* @var array
*/
protected $guarded = [];
/**
* Get all of the authentication codes for the client.
*
* @return BelongsTo
*/
public function client()
{
return $this->belongsTo(Client::class, 'client_uuid', 'id');
}
/**
* Get the route key for the model.
*
* @return string
*/
public function getRouteKeyName()
{
return 'uuid';
}
/**
* Disable find by id.
*
* @var bool
*/
public $incrementing = false;
}