Files
roxane/routes/dev-routes.php

57 lines
1.5 KiB
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\Route;
2026-01-30 15:27:23 +01:00
// Test Dolibarr API
/*Route::get('/call-dolibarr', function () {
2026-01-11 18:13:18 +01:00
$call = new \App\Services\Dolibarr\DolibarrService;
$members = $call->getAllMembers();
// find specific
2025-11-15 17:09:56 +01:00
$userData = collect($members)->firstWhere('id', 124); // Isabelle AK
2025-11-15 17:09:56 +01:00
//dd($userData);
$subscriptions = collect($call->getMemberSubscriptions(124))->firstWhere('id', 324);
dd($subscriptions);
$date1 = \Carbon\Carbon::createFromTimestamp($subscriptions['datec'])->format('d/m/Y');
$date2 = \Carbon\Carbon::createFromTimestamp($subscriptions['datem'])->format('d/m/Y');
$date3 = \Carbon\Carbon::createFromTimestamp($subscriptions['dateh'])->format('d/m/Y');
$date4 = \Carbon\Carbon::createFromTimestamp($subscriptions['datef'])->format('d/m/Y');
dd($date1, $date2, $date3, $date4);
})->name('call-dolibarr');
2026-01-30 15:27:23 +01:00
Route::get('/test-dolibarr', function () {
$dolibarrService = new \App\Services\Dolibarr\DolibarrService();
$members = $dolibarrService->getAllMembers();
dd($members);
});
*/
// Test ISPConfig
/*Route::get('/test/sync-ispconfig', function () {
if (!app()->isLocal()) {
abort(403);
}
Artisan::call('sync:ispconfig-web-members');
return response()->json([
'status' => 'ok',
'output' => Artisan::output(),
]);
});
// Test ISPConfig Mail
Route::get('/test/isp-mails', function() {
$ispService = new \App\Services\ISPConfig\ISPConfigMailService;
return $ispService->getAllMailDomains();
});*/