Add api stuff
This commit is contained in:
20
app/Models/ApiKeyAccessEvent.php
Normal file
20
app/Models/ApiKeyAccessEvent.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class ApiKeyAccessEvent extends Model
|
||||
{
|
||||
protected $table = 'api_key_access_events';
|
||||
/**
|
||||
* Get the related ApiKey record
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function apiKey()
|
||||
{
|
||||
return $this->belongsTo(ApiKey::class, 'api_key_id');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user