<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
smskin / myhouse-identity-service-client example snippets
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->timestamps();
});
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use SMSkin\IdentityServiceClient\Models\Contracts\HasIdentity;
use SMSkin\IdentityServiceClient\Models\Traits\IdentityTrait;
class User extends Authenticatable implements HasIdentity
{
use HasApiTokens, HasFactory, Notifiable;
use IdentityTrait;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'identity_uuid',
'name',
];
}