Update to Laravel 11

This commit is contained in:
2025-02-16 23:36:34 +11:00
parent 39a0195720
commit 2abe73a576
46 changed files with 3172 additions and 2454 deletions

View File

@@ -1,20 +1,12 @@
<?php
/** @var \Laravel\Lumen\Routing\Router $router */
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/
use App\Http\Controllers\VersionController;
$router->get('/', function () {
return redirect()->to('https://demo.phpldapadmin.org');
Route::get('/', function () {
return redirect()
->to('https://demo.phpldapadmin.org');
});
$router->post('[{version}]', ['as' => 'version', 'uses' => 'VersionController@main']);
Route::post('{version}',[VersionController::class,'main']);