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.5 KiB

<?php
namespace App;
use App\Events\UserCreating;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password', 'category_id',
];
/**
* 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 = [
'email_verified_at' => 'datetime',
];
/**
* The event map for the model.
*
* @var array
*/
protected $dispatchesEvents = [
'creating' => UserCreating::class,
];
//
//
// =====================================================================
// RELATIONSHIPS
// =====================================================================
//
//
/**
* Get the user's category
*/
public function category()
{
return $this->belongsTo(UserCategory::class);
}
//
//
// =====================================================================
// OTHER METHODS
// =====================================================================
//
//
}