|
|
|
@ -0,0 +1,54 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace App; |
|
|
|
|
|
|
|
use App\Events\UserCreating; |
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable; |
|
|
|
use Illuminate\Notifications\Notifiable; |
|
|
|
|
|
|
|
class Collaborator extends Authenticatable |
|
|
|
{ |
|
|
|
use Notifiable; |
|
|
|
|
|
|
|
/** |
|
|
|
* The attributes that aren't mass assignable. |
|
|
|
* |
|
|
|
* @var array |
|
|
|
*/ |
|
|
|
protected $fillable = ['name', 'email', 'password']; |
|
|
|
|
|
|
|
/** |
|
|
|
* The attributes that should be hidden for arrays. |
|
|
|
* |
|
|
|
* @var array |
|
|
|
*/ |
|
|
|
protected $hidden = [ |
|
|
|
'password', 'remember_token', |
|
|
|
]; |
|
|
|
|
|
|
|
/** |
|
|
|
* The event map for the model. |
|
|
|
* |
|
|
|
* @var array |
|
|
|
*/ |
|
|
|
protected $dispatchesEvents = [ |
|
|
|
'creating' => UserCreating::class, |
|
|
|
]; |
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// =====================================================================
|
|
|
|
// RELATIONSHIPS
|
|
|
|
// =====================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// =====================================================================
|
|
|
|
// OTHER METHODS
|
|
|
|
// =====================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
} |