Add route and logic to create a new invoice directly from the sidebar
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
return Inertia::render('Invoices');
|
||||
})->middleware(['auth', 'verified'])->name('invoices');
|
||||
|
||||
Route::get('invoices?action=new', function () {
|
||||
return Inertia::render('Invoices');
|
||||
})->middleware(['auth', 'verified'])->name('newInvoice');
|
||||
|
||||
Route::get('invoice/{id}', [InvoiceController::class, 'preview'])
|
||||
->middleware(['auth', 'verified'])
|
||||
->name('invoice.preview');
|
||||
|
||||
Reference in New Issue
Block a user