for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Modules\User\Entities;
use Foundation\Abstracts\SqlModel;
use Foundation\Contracts\Ownable;
use Foundation\Traits\Cacheable;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Notifications\HasDatabaseNotifications;
use Illuminate\Notifications\Notifiable;
use Modules\Notification\Traits\ReceivesWebNotifications;
use Spatie\Permission\Traits\HasRoles;
/**
* Class User.
*
* @property string $_id
* @property string $id
* @property string $username
* @property string $email
* @property string $name
* @property string $avatar
* @property string $provider
*/
class User extends SqlModel implements AuthorizableContract, AuthenticatableContract, Ownable
{
use Notifiable,
Spatie\Permission\Traits\HasRoles
Modules\User\Entities\User
$map
$permissions
$roles
Illuminate\Auth\Authenticatable
$password
Illuminate\Notifications\Notifiable
$phone_number
Authorizable,
Authenticatable,
Cacheable,
HasRoles,
ReceivesWebNotifications;
protected $guard_name = 'api';
* @var string
protected $table = 'users';
* @var array
protected $guarded = [];
* @return mixed
public function ownerId()
return $this->id;
}
public function ownedBy()
return self::class;