name('api.notifications.index'); Route::prefix('customer-invoices') ->name('api.customer-invoices.') ->controller(ClientInvoiceController::class) ->group(function () { Route::get('/pending', 'pending')->name('pending'); Route::post('/', 'store')->name('store'); Route::patch('{invoice}/approve', 'approve')->name('approve'); });