src/ToolboxServiceProvider.php
public function register()
    {
        App::bind(
            'toolbox.commands.controllers',
            function () {
                return new \Impleri\Toolbox\Commands\ControllersCommand();
            }
        );

        App::bind(
            'toolbox.commands.models',
            function () {
                return new \Impleri\Toolbox\Commands\ModelsCommand();
            }
        );

        App::bind(
            'toolbox.commands.routes',
            function () {
                return new \Impleri\Toolbox\Commands\RoutesCommand();
            }
        );

        App::bind(
            'toolbox.commands.schema',
            function () {
                return new \Impleri\Toolbox\Commands\SchemaCommand();
            }
        );

        App::bind(
            'toolbox.commands.views',
            function () {
                return new \Impleri\Toolbox\Commands\ViewsCommand();
            }
        );

        App::bind(
            'toolbox.commands.build',
            function () {
                return new \Impleri\Toolbox\Commands\BuildCommand();
            }
        );

        $this->commands($this->provides());

        // Subscribe our own commands to toolbox.compile
        Event::listen('toolbox.build', function ($app) {
            $app->call('toolbox:routes');
            $app->call('toolbox:controllers');
            $app->call('toolbox:models');
            $app->call('toolbox:schema');
            $app->call('toolbox:views');
        });
    }
public function register()
    {
        App::bind(
            'toolbox.commands.controllers',
            function () {
                return new \Impleri\Toolbox\Commands\ControllersCommand();
            }
        );

        App::bind(
            'toolbox.commands.models',
            function () {
                return new \Impleri\Toolbox\Commands\ModelsCommand();
            }
        );

        App::bind(
            'toolbox.commands.routes',
            function () {
                return new \Impleri\Toolbox\Commands\RoutesCommand();
            }
        );

        App::bind(
            'toolbox.commands.schema',
            function () {
                return new \Impleri\Toolbox\Commands\SchemaCommand();
            }
        );

        App::bind(
            'toolbox.commands.views',
            function () {
                return new \Impleri\Toolbox\Commands\ViewsCommand();
            }
        );

        App::bind(
            'toolbox.commands.build',
            function () {
                return new \Impleri\Toolbox\Commands\BuildCommand();
            }
        );

        $this->commands($this->provides());

        // Subscribe our own commands to toolbox.compile
        Event::listen('toolbox.build', function ($app) {
            $app->call('toolbox:routes');
            $app->call('toolbox:controllers');
            $app->call('toolbox:models');
            $app->call('toolbox:schema');
            $app->call('toolbox:views');
        });
    }
Register the service provider.