*/ protected $fillable = [ 'name', 'slug', 'description', 'api_key', 'base_url', 'is_active', 'config', ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'is_active' => 'boolean', 'config' => 'array', ]; } /** * Get all of the models for the AI provider. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\AiModel> */ public function models(): HasMany { return $this->hasMany(AiModel::class, 'provider_id'); } }