composer require alineisi/router
require_once __DIR__ . '/vendor/autoload.php';
use Alineisi\Route;
Route::dispatch();
Route::get('/', function () {
return 'Hello World';
});
Route::get('/', [HomeController::class, 'index']);
Route::post('/submit', function () {
return $_POST['name'];
});
Route::notFoundPath($path);
Route::get('/', function () {
return 'Hello World';
})->name('index');
\Alineisi\routeName('index');
Route::view('/', 'index');
Route::view('/', 'index.php');