src/Way/Generators/Commands/ResourceGeneratorCommand.php
public function fire()
    {
        $resource = $this->argument('resource');

        $this->callModel($resource);
        $this->callView($resource);
        $this->callController($resource);
        $this->callMigration($resource);
        $this->callSeeder($resource);
        $this->callMigrate();

        // All done!
        $this->info(sprintf(
            "All done! Don't forget to add `%s` to %s." . PHP_EOL,
            "Route::resource('{$this->getTableName($resource)}', '{$this->getControllerName($resource)}');",
            "app/routes.php"
        ));

    }
public function fire()
    {
        $resource = $this->argument('resource');

        $this->callModel($resource);
        $this->callView($resource);
        $this->callController($resource);
        $this->callMigration($resource);
        $this->callSeeder($resource);
        $this->callMigrate();

        // All done!
        $this->info(sprintf(
            "All done! Don't forget to add `%s` to %s." . PHP_EOL,
            "Route::resource('{$this->getTableName($resource)}', '{$this->getControllerName($resource)}');",
            "app/routes.php"
        ));

    }
public function fire ( ) { $ resource = $ this -> argument ( 'resource' ) ; $ this -> callModel ( $ resource ) ; $ this -> callView ( $ resource ) ; $ this -> callController ( $ resource ) ; $ this -> callMigration ( $ resource ) ; $ this -> callSeeder ( $ resource ) ; $ this -> callMigrate ( ) ; // All done! $ this -> info ( sprintf ( "All done! Don't forget to add `%s` to %s." . PHP_EOL , "Route::resource('{$this->getTableName($resource)}', '{$this->getControllerName($resource)}');" , "app/routes.php" ) ) ; }
Generate a resource

@return mixed
Generate a resource