Use marketing demo flag for demo page
This commit is contained in:
@@ -409,10 +409,17 @@ class MarketingController extends Controller
|
||||
|
||||
public function demo()
|
||||
{
|
||||
$joinToken = optional(Event::firstWhere('slug', 'demo-wedding-2025'))
|
||||
?->joinTokens()
|
||||
$event = Event::query()
|
||||
->where('settings->marketing_demo', true)
|
||||
->latest('id')
|
||||
->first();
|
||||
$joinToken = null;
|
||||
|
||||
if ($event) {
|
||||
$joinToken = $event->joinTokens()
|
||||
->latest('id')
|
||||
->first();
|
||||
}
|
||||
|
||||
$demoToken = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user