kenken999's picture
add php laravel
dad4394
raw
history blame
477 Bytes
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
class User extends Model
{
protected $fillable = [
'name',
'email',
'password',
];
protected $hidden = [
'password',
'remember_token',
];
public function profile()
{
return $this->hasOne(Profile::class);
}
public function teams()
{
return $this->belongsToMany(Team::class);
}
}