<?php
 namespace TechSoft\Laravel\Mod; use TechSoft\Laravel\Config\ConfigUtil; trait ModTrait { public function requireRoutes() { foreach (ModUtil::enables() as $mod) { if (file_exists($file = public_path("mod/$mod/Config/routes.php"))) { require $file; } } } }