Add legacy redirect routes for buyer orders, invoices, and business profile that redirect to the new business-scoped routes. This maintains backward compatibility with existing tests and links while preserving the secure multi-tenant architecture. Changes: - Add /b/orders redirect route (buyer.orders.show) - Add /b/invoices redirect route (buyer.invoices.show) - Add /b/business/profile redirect route - Fix route redirects to use business slug explicitly - Update SmokeTest to expect redirects instead of 200 OK - Update OrderSurchargeDisplayTest to follow redirects Test Results: - Fixed 7 previously failing route tests - All smoke tests now passing (19/19) - OrderSurchargeDisplayTest all passing (4/4) - 79/82 tests passing (1 pre-existing schema issue, 2 skipped) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
588 B
PHP
23 lines
588 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
class DispensarySetupController extends Controller
|
|
{
|
|
public function create(Request $request, $step = 1)
|
|
{
|
|
// TODO: Implement dispensary setup wizard
|
|
$business = auth()->user()->businesses->first();
|
|
|
|
return view('buyer.dispensary.setup', compact('step', 'business'));
|
|
}
|
|
|
|
public function store(Request $request, $step = 1)
|
|
{
|
|
// TODO: Implement dispensary setup storage
|
|
return redirect()->route('buyer.dispensary.setup.create', ['step' => $step + 1]);
|
|
}
|
|
}
|