Created
October 27, 2016 05:45
-
-
Save sanathks/2b89baf5a19e04006647c6fb067a0c18 to your computer and use it in GitHub Desktop.
autoload routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach (new DirectoryIterator(__DIR__.'/'.'Routes') as $file) | |
{ | |
if (!$file->isDot() && !$file->isDir()) | |
{ | |
require_once __DIR__.'/Routes/'.$file->getFilename(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment