Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Spatie\LaravelSettings\Migrations\SettingsMigration;
|
||||
|
||||
return new class extends SettingsMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$this->migrator->inGroup('general', function ($blueprint): void {
|
||||
$blueprint->add('site_name', config('app.name', 'LaraBlog'));
|
||||
$blueprint->add('site_url', config('app.url', 'http://localhost'));
|
||||
$blueprint->add('site_description', null);
|
||||
$blueprint->add('active_theme', 'default');
|
||||
$blueprint->add('attachments_url_prefix', env('ATTACHMENTS_URL_PREFIX', 'attachments'));
|
||||
});
|
||||
|
||||
$this->migrator->inGroup('seo', function ($blueprint): void {
|
||||
$blueprint->add('meta_title_suffix', null);
|
||||
$blueprint->add('default_description', null);
|
||||
$blueprint->add('default_keywords', null);
|
||||
$blueprint->add('json_ld_enabled', true);
|
||||
});
|
||||
|
||||
$this->migrator->inGroup('ai', function ($blueprint): void {
|
||||
$blueprint->add('provider', env('AI_PROVIDER', 'stub'));
|
||||
$blueprint->add('api_base_url', env('AI_API_BASE_URL'));
|
||||
$blueprint->add('api_key', env('AI_API_KEY'));
|
||||
$blueprint->add('model', env('AI_MODEL', 'gpt-4o-mini'));
|
||||
$blueprint->add('comment_moderation_enabled', true);
|
||||
$blueprint->add('content_optimization_enabled', true);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user