For custom sites we'll post to via their own API — there's no wired-in publisher for these, so this is where the site owner documents how to actually post there (auth, endpoints, payload shape). Shown in the UI for non-WordPress sites, exposed via the JSON API, and pointed to from AI_API.md's "any other network/CMS" fallback section so an agent checks it before improvising. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
427 B
PHP
24 lines
427 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'];
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'url',
|
|
'description',
|
|
'cms_type',
|
|
'wp_username',
|
|
'wp_app_password',
|
|
'api_instructions',
|
|
];
|
|
}
|