Merge branch 'packages' into 'develop'

chore: ⬆️ bump project to laravel 11 & php8.3 #8 #14

Closes #8 and #14

See merge request ldc-web/projets/crm!23
This commit is contained in:
Vincent BRIDIER 2025-01-16 15:17:19 +00:00
commit 7b3193fa82
4 changed files with 968 additions and 1414 deletions

View file

@ -1,79 +0,0 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
/**
* Command Name: LDC Web Status Checker
* Description: Envoi des infos Serveur/Laravel vers LDC Web
* Version: 1.1
* Author: Vincent BRIDIER
* Author URI: vincent.bridier@ldc.fr
*
* @codeCoverageIgnore
*
*/
class LdcWebStatusChecker extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'ldcweb:statuschecker';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Envoi des infos Serveur/Laravel vers LDC Web';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle(): mixed
{
$data = [];
$data['uuid'] = config('ldcweb.project_uuid');
// Sitemap.xml ?
if (file_exists(public_path() . '/sitemap.xml')) {
$data['sitemap'] = 'true';
} else {
$data['sitemap'] = 'false';
}
// Robots.txt ?
if (file_exists(public_path() . '/robots.txt')) {
$data['robots'] = 'true';
} else {
$data['robots'] = 'false';
}
// Check logs.
$data['logs'] = 0;
$patherror = storage_path('/logs');
$files = glob($patherror . '/*.log');
if (count($files) > 0) {
foreach ($files as $file) {
$data['logs'] = $data['logs'] + filesize($file);
}
}
$data['code']['version'] = app()->version();
// Send by cURL.
$url = 'https://ldc-web.ldc.fr/api/status-checker';
$ch = curl_init($url);
$payload = ['token' => 'CE8S52Qq7stf5k8frF4T', 'datas' => json_encode($data)];
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
return 0;
}
}

View file

@ -12,7 +12,7 @@
"laravel"
],
"platform": {
"php": "^8.2"
"php": "^8.3"
},
"repositories": [
{
@ -21,37 +21,38 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-curl": "*",
"ext-dom": "*",
"ext-json": "*",
"arondeparon/laravel-request-sanitizer": "^5.0",
"axlon/laravel-postal-code-validation": "^3.2",
"diglactic/laravel-breadcrumbs": "^8.1",
"diglactic/laravel-breadcrumbs": "^9.0",
"doctrine/dbal": "^3.0",
"doctrine/inflector": "^2.0",
"guzzlehttp/guzzle": "^7.4",
"laravel/framework": "^10.0",
"laravel/framework": "^11.0",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.2",
"league/csv": "^9.7",
"mews/purifier": "^3.4",
"propaganistas/laravel-phone": "^5.0",
"rennokki/laravel-eloquent-query-cache": "^3.0",
"sentry/sentry-laravel": "^3.4",
"uwil/k8s-laravel": "^1.2"
"rennokki/laravel-eloquent-query-cache": "^3.5",
"sentry/sentry-laravel": "^4.10",
"uwil/admin-secure-laravel": "^3.0",
"uwil/k8s-laravel": "^1.4"
},
"require-dev": {
"brianium/paratest": "^7.2",
"fakerphp/faker": "^1.9.1",
"laravel-lang/common": "^4.0",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^10.0",
"respect/validation": "^2.2",
"slevomat/coding-standard": "^8.10",
"spatie/laravel-ignition": "^2.3",
"symfony/process": "^6.2"
"symfony/process": "^7.2"
},
"config": {
"optimize-autoloader": true,

2282
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@ use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
Route::prefix('bo')->name('bo.')->group(function () {
Route::middleware(['throttle:web', 'admin-secure'])->prefix('bo')->name('bo.')->group(function () {
// * Authenticable routes
Route::namespace('\App\Http\Controllers\Bo')
->group(function () {