src/Console/CommandTemplate.php
public function controller()
    {
        if ($this->restful) {
            return filesystem()->exists(realpath(__DIR__.'/../../../../../app/controllers')) ?
                realpath(__DIR__.'/../Templates/controller/restful.stub') :
                realpath(__DIR__.'/../Templates/controller/restful.core.stub');
        }

        return filesystem()->exists(realpath(__DIR__.'/../../../../../app/controllers')) ?
            realpath(__DIR__.'/../Templates/controller/plain.stub') :
            realpath(__DIR__.'/../Templates/controller/core.stub');
    }
public function controller()
    {
        if ($this->restful) {
            return filesystem()->exists(realpath(__DIR__.'/../../../../../app/controllers')) ?
                realpath(__DIR__.'/../Templates/controller/restful.stub') :
                realpath(__DIR__.'/../Templates/controller/restful.core.stub');
        }

        return filesystem()->exists(realpath(__DIR__.'/../../../../../app/controllers')) ?
            realpath(__DIR__.'/../Templates/controller/plain.stub') :
            realpath(__DIR__.'/../Templates/controller/core.stub');
    }
public function controller ( ) { if ( $ this -> restful ) { return filesystem ( ) -> exists ( realpath ( __DIR__ . '/../../../../../app/controllers' ) ) ? realpath ( __DIR__ . '/../Templates/controller/restful.stub' ) : realpath ( __DIR__ . '/../Templates/controller/restful.core.stub' ) ; } return filesystem ( ) -> exists ( realpath ( __DIR__ . '/../../../../../app/controllers' ) ) ? realpath ( __DIR__ . '/../Templates/controller/plain.stub' ) : realpath ( __DIR__ . '/../Templates/controller/core.stub' ) ; }
Get the template for creating a controller.

@return bool|string
Get the template for creating a controller .