- Add tone column to sites table (nullable string) - Add TONES constant to Site model with predefined options: professional, casual, technical, friendly, formal, humorous, conversational, authoritative, inspirational, educational, minimal, detailed - Update Sites Livewire component to edit tone - Update Sites view with tone select dropdown in form - Add tone column to sites table display - Add tone to SiteResource API response AI agents can now read the site's tone and use it when generating content. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
31 lines
665 B
PHP
31 lines
665 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Site extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public const CMS_TYPES = ['wordpress', 'custom', 'other'];
|
|
|
|
public const TONES = [
|
|
'professional', 'casual', 'technical', 'friendly',
|
|
'formal', 'humorous', 'conversational', 'authoritative',
|
|
'inspirational', 'educational', 'minimal', 'detailed',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'url',
|
|
'description',
|
|
'cms_type',
|
|
'wp_username',
|
|
'wp_app_password',
|
|
'api_instructions',
|
|
'tone',
|
|
];
|
|
}
|