peliprint/routes/blueprint/web.php

9 lines
No EOL
265 B
PHP

<?php
foreach (File::allFiles(__DIR__ . '/web') as $partial) {
if ($partial->getExtension() == 'php') {
Route::prefix('/'.basename($partial->getFilename(), '.php'))
->group(function () use ($partial) {require_once $partial->getPathname();}
);
}
}