rits-tecnologia/modular

View on GitHub
stub/application/app/Modules/Stub/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Modules\Stub;

use Rits\Modular\ModuleDefinition;
use Illuminate\Contracts\Routing\Registrar;

class Module extends ModuleDefinition
{
    /**
     * Bind application routes.
     *
     * @param Registrar $router
     * @return void
     */
    public function bindRoutes(Registrar $router)
    {
        $router->get('/', ['as' => 'stub.index', 'uses' => 'DefaultController@index']);
    }
}