src/Way/Generators/Commands/ResourceGeneratorCommand.php
protected function callView($resource)
    {
        $collection = $this->getTableName($resource);
        $modelName = $this->getModelName($resource);

        if ($this->confirm("Do you want me to create views for this $modelName resource? [yes|no]"))
        {
            foreach(['index', 'show', 'create', 'edit'] as $viewName)
            {
                $viewName = "{$collection}.{$viewName}";

                $this->call('generate:view', compact('viewName'));
            }
        }
    }
protected function callView($resource)
    {
        $collection = $this->getTableName($resource);
        $modelName = $this->getModelName($resource);

        if ($this->confirm("Do you want me to create views for this $modelName resource? [yes|no]"))
        {
            foreach(['index', 'show', 'create', 'edit'] as $viewName)
            {
                $viewName = "{$collection}.{$viewName}";

                $this->call('generate:view', compact('viewName'));
            }
        }
    }
protected function callView ( $ resource ) { $ collection = $ this -> getTableName ( $ resource ) ; $ modelName = $ this -> getModelName ( $ resource ) ; if ( $ this -> confirm ( "Do you want me to create views for this $modelName resource? [yes|no]" ) ) { foreach ( [ 'index' , 'show' , 'create' , 'edit' ] as $ viewName ) { $ viewName = "{$collection}.{$viewName}" ; $ this -> call ( 'generate:view' , compact ( 'viewName' ) ) ; } } }
Call view generator if user confirms

@param $resource
Call view generator if user confirms