for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Modules\User\Entities;
use Foundation\Abstracts\MongoModel;
use Foundation\Contracts\Cacheable;
use Foundation\Contracts\Ownable;
use Foundation\Traits\OwnedByUser;
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\Notifiable;
class User extends MongoModel implements AuthorizableContract, AuthenticatableContract, Cacheable, Ownable
{
use Notifiable, Authorizable, Authenticatable, OwnedByUser;
Illuminate\Notifications\Notifiable
Modules\User\Entities\User
$email
$phone_number
Illuminate\Auth\Authenticatable
$password
protected $collection = 'users';
protected $guarded = [];
public function ownerId()
return $this->id;
}