コード例 #1
0
 /**
  * Register the js-built route based on the config
  *
  * @return void
  */
 protected function registerRoutes()
 {
     $this->app->booting(function ($app) {
         $buildPath = $app['config']->get('laravel-gcc::build_path', GCCompiler::JS_BUILD_PATH);
         $app['router']->get($buildPath . '/{filename}.js', function ($filename) {
             return GCCompiler::getCompiledFile($filename);
         });
     });
 }