2017-12-14 12:24:41 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace $NAMESPACE$;
|
|
|
|
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class $CLASS$
|
|
|
|
* @package $NAMESPACE$
|
|
|
|
*/
|
2017-12-14 12:24:41 +08:00
|
|
|
class $CLASS$ extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The root namespace to assume when generating URLs to actions.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $rootUrlNamespace = '$MODULE_NAMESPACE$\$MODULE$\Http\Controllers';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called before routes are registered.
|
|
|
|
*
|
|
|
|
* Register any model bindings or pattern based filters.
|
|
|
|
*
|
|
|
|
* @param Router $router
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function before(Router $router)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the routes for the application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function map(Router $router)
|
|
|
|
{
|
|
|
|
// if (!app()->routesAreCached()) {
|
|
|
|
// require __DIR__ . '$ROUTES_PATH$';
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|