trypost/app/Broadcasting/UserAiMediaRegenerationChannel.php
Paulo Castellano 560393db2a feat: regenerate AI post images with brand palette in editor
Let users adjust AI-generated slides in place via async job and Echo, while applying workspace brand, background, and text colors to image prompts. Autofill swaps site text/background colors for the image palette, and regeneration is blocked on finalized posts with safer job cleanup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 16:27:55 -03:00

15 lines
251 B
PHP

<?php
declare(strict_types=1);
namespace App\Broadcasting;
use App\Models\User;
class UserAiMediaRegenerationChannel
{
public function join(User $user, User $owner, string $regenerationId): bool
{
return $user->is($owner);
}
}