Skip to content

Commit 67e93bd

Browse files
simonhampclaude
andcommitted
Update developer FAQ content and remove unused onboarding view
- Update "When do I get paid?" FAQ to explain the 14-day refund period before earnings are paid out - Update "What do I need to get started?" FAQ to clarify Stripe account creation during onboarding, private GitHub repo requirement, and link to plugin documentation instead of referencing nativephp.json - Remove unused non-Livewire onboarding view (replaced by Livewire component) - Remove dead show() and dashboard() methods from DeveloperOnboardingController Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent efffb6c commit 67e93bd

File tree

4 files changed

+4
-290
lines changed

4 files changed

+4
-290
lines changed

app/Http/Controllers/DeveloperOnboardingController.php

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,11 @@
88
use Illuminate\Http\RedirectResponse;
99
use Illuminate\Http\Request;
1010
use Illuminate\Validation\Rule;
11-
use Illuminate\View\View;
1211

1312
class DeveloperOnboardingController extends Controller
1413
{
1514
public function __construct(protected StripeConnectService $stripeConnectService) {}
1615

17-
public function show(Request $request): View|RedirectResponse
18-
{
19-
$user = $request->user();
20-
$developerAccount = $user->developerAccount;
21-
22-
if ($developerAccount && $developerAccount->hasCompletedOnboarding() && $developerAccount->hasAcceptedCurrentTerms()) {
23-
return to_route('customer.developer.dashboard')
24-
->with('message', 'Your developer account is already set up.');
25-
}
26-
27-
return view('customer.developer.onboarding', [
28-
'developerAccount' => $developerAccount,
29-
'hasExistingAccount' => $developerAccount !== null,
30-
]);
31-
}
32-
3316
public function start(Request $request): RedirectResponse
3417
{
3518
$request->validate([
@@ -131,35 +114,4 @@ public function refresh(Request $request): RedirectResponse
131114
->with('error', 'Unable to refresh onboarding. Please try again.');
132115
}
133116
}
134-
135-
public function dashboard(Request $request): View|RedirectResponse
136-
{
137-
$user = $request->user();
138-
$developerAccount = $user->developerAccount;
139-
140-
if (! $developerAccount || ! $developerAccount->hasCompletedOnboarding()) {
141-
return to_route('customer.developer.onboarding');
142-
}
143-
144-
$this->stripeConnectService->refreshAccountStatus($developerAccount);
145-
146-
$plugins = $user->plugins()->withCount('licenses')->get();
147-
$payouts = $developerAccount->payouts()->with('pluginLicense.plugin')->latest()->limit(10)->get();
148-
149-
$totalEarnings = $developerAccount->payouts()
150-
->where('status', 'transferred')
151-
->sum('developer_amount');
152-
153-
$pendingEarnings = $developerAccount->payouts()
154-
->where('status', 'pending')
155-
->sum('developer_amount');
156-
157-
return view('customer.developer.dashboard', [
158-
'developerAccount' => $developerAccount,
159-
'plugins' => $plugins,
160-
'payouts' => $payouts,
161-
'totalEarnings' => $totalEarnings,
162-
'pendingEarnings' => $pendingEarnings,
163-
]);
164-
}
165117
}

0 commit comments

Comments
 (0)