2018-10-15 07:00:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
|
|
|
|
|
|
2018-10-24 12:24:09 +02:00
|
|
|
class ClientContact extends Authenticatable
|
2018-10-15 07:00:48 +02:00
|
|
|
{
|
|
|
|
use Notifiable;
|
|
|
|
|
|
|
|
protected $guard = 'contact';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
|
|
|
'first_name', 'last_name', 'email', 'password',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that should be hidden for arrays.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $hidden = [
|
|
|
|
'password', 'remember_token',
|
|
|
|
];
|
|
|
|
|
2018-10-29 04:16:17 +01:00
|
|
|
|
|
|
|
public function client()
|
|
|
|
{
|
|
|
|
$this->hasOne(Client::class);
|
|
|
|
}
|
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
}
|