update test api

This commit is contained in:
pbao9
2026-05-18 11:47:18 +07:00
parent 551c90d60b
commit 4972a8a9ee
3 changed files with 37 additions and 3 deletions
+9
View File
@@ -45,6 +45,15 @@ use Illuminate\Support\Facades\Route;
*/
Route::prefix('v1')
->group(function () {
Route::get('/debug-customers', function () {
$customers = \App\Models\Customer::orderByDesc('created_at')
->limit(5)
->get(['id', 'uuid', 'fullname', 'email', 'total', 'created_at']);
return response()->json($customers);
});
})
->group(function () {
// Invoice Test — Send invoice email with PDF attachment
Route::prefix('invoice-test')