You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
483 B
21 lines
483 B
<?php
|
|
|
|
namespace App\Domains\Channel\Models;
|
|
|
|
use App\Domains\Channel\Enums\Api\ApiType;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
#[Fillable(['key', 'value', 'client_id'])]
|
|
class ApiEndpoint extends Model
|
|
{
|
|
protected $casts = [
|
|
'key' => ApiType::class,
|
|
];
|
|
|
|
public function client(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Client::class);
|
|
}
|
|
}
|
|
|