rbrecruiter/app/ApiKey.php

26 lines
419 B
PHP
Raw Normal View History

2021-03-30 00:27:49 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ApiKey extends Model
{
use HasFactory;
protected $fillable = [
'name',
'status',
'discriminator',
'last_used',
'secret',
'owner_user_id'
];
public function user()
{
return $this->belongsTo('App\User', 'id');
}
}