Deploy Ladill Events / deploy (push) Successful in 55s
Make Ladill Events free for all accounts, remove plan upgrade UI, force Ladill Pay only for tickets and contributions, and reinstate standard platform fees.
55 lines
1.5 KiB
PHP
55 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Events;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Billing\BillingClient;
|
|
use App\Services\Events\SubscriptionService;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
/**
|
|
* Paid Events plans are retired. Routes remain so old bookmarks and emails
|
|
* do not 404; every action redirects to the dashboard.
|
|
*/
|
|
class ProController extends Controller
|
|
{
|
|
public function __construct(private readonly SubscriptionService $subscriptions) {}
|
|
|
|
public function index(Request $request): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
public function subscribe(Request $request): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
public function subscribeEnterprise(Request $request): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
public function subscribePrepaid(Request $request, BillingClient $billing): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
public function paystackCallback(Request $request, BillingClient $billing): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
public function cancel(Request $request): RedirectResponse
|
|
{
|
|
return $this->retired();
|
|
}
|
|
|
|
private function retired(): RedirectResponse
|
|
{
|
|
return redirect()->route('events.dashboard')
|
|
->with('success', 'Ladill Events is free — paid subscriptions are no longer offered. Ticket payments use Ladill Pay with the standard platform fee.');
|
|
}
|
|
}
|