File: /home/eslinced-103/brise-edu.or.kr/app/Models/Central/Admin.php
<?php
namespace App\Models\Central;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
use Stancl\Tenancy\Database\Concerns\CentralConnection;
class Admin extends Authenticatable
{
use CentralConnection, Notifiable;
use HasRoles;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function getGravatarUrlAttribute()
{
return 'https://www.gravatar.com/avatar/'.md5(strtolower(trim($this->email)));
}
}