26 lines
501 B
PHP
26 lines
501 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\SourceProviderType;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class SourceProvider extends Model
|
|
{
|
|
protected $guarded = [];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'type' => SourceProviderType::class,
|
|
'config' => 'array',
|
|
];
|
|
}
|
|
|
|
public function organisation(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Organisation::class);
|
|
}
|
|
}
|