feat stuff
: push changes
This commit is contained in:
parent
191856a8a6
commit
ef057cf8c1
2 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
/* Import Blueprint wildcard router */
|
/* Import Blueprint wildcard router */
|
||||||
Route::middleware('blueprint')
|
Route::middleware('blueprint')
|
||||||
|
->prefix('/extensions')
|
||||||
->group(base_path('routes/blueprint/wildcard.php'));
|
->group(base_path('routes/blueprint/wildcard.php'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
foreach (File::allFiles(__DIR__ . '/extensions') as $partial) {
|
foreach (File::allFiles(__DIR__ . '/extensions') as $partial) {
|
||||||
if ($partial->getExtension() == 'php') {
|
if ($partial->getExtension() == 'php') {
|
||||||
Route::prefix('/extensions'.'/'.basename($partial->getFilename(), '.php'))
|
Route::prefix('/'.basename($partial->getFilename(), '.php'))
|
||||||
->group(function () use ($partial) {require_once $partial->getPathname();}
|
->group(function () use ($partial) {require_once $partial->getPathname();}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue