21 lines
433 B
PHP
21 lines
433 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ApiKeyAdminEvent extends Model
|
|
{
|
|
protected $table = 'api_key_admin_events';
|
|
/**
|
|
* Get the related ApiKey record
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function apiKey()
|
|
{
|
|
return $this->belongsTo(ApiKey::class, 'api_key_id');
|
|
}
|
|
}
|