Sistema de controles da União de Ciclistas do Brasil
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

73 lines
1.6 KiB

<?php
namespace App;
use App\Events\UserCreating;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Associate extends Authenticatable
{
use Notifiable;
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = ['associate_category_id', 'associate_nature_id', 'associate_type_id', 'remember_token'];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'address' => 'array',
'birthday' => 'date',
'document' => 'array',
'profile' => 'array',
];
/**
* The event map for the model.
*
* @var array
*/
protected $dispatchesEvents = [
'creating' => UserCreating::class,
];
//
//
// =====================================================================
// RELATIONSHIPS
// =====================================================================
//
//
/**
* Get the associate's category
*/
public function category()
{
return $this->belongsTo(AssociateCategory::class, 'associate_category_id');
}
//
//
// =====================================================================
// OTHER METHODS
// =====================================================================
//
//
}