<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Device extends Model
{


    protected $fillable = [
        'identifier', 'user_id', 'fcm_token'
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'identifier', 'fcm_token'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
