for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\EmailCampaigns\Models\Concerns;
use Illuminate\Database\Eloquent\Builder;
use Spatie\SchemalessAttributes\SchemalessAttributes;
trait HasExtraAttributes
{
public function getExtraAttributesAttribute(): SchemalessAttributes
return SchemalessAttributes::createForModel($this, 'extra_attributes');
}
public function scopeWithExtraAttributes(): Builder
return SchemalessAttributes::scopeWithSchemalessAttributes('extra_attributes');