Update to Laravel 11
This commit is contained in:
@@ -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']);
|
||||
|
Reference in New Issue
Block a user