src/Way/Generators/Commands/ControllerGeneratorCommand.php
protected function getTemplateData()
    {
        // LessonsController
        $name = ucwords($this->argument('controllerName'));

        // lessons
        $collection = strtolower(str_replace('Controller', '', $name));

        // lesson
        $resource = str_singular($collection);

        // Lesson
        $model = ucwords($resource);

        return compact('name', 'collection', 'resource', 'model');
    }
protected function getTemplateData()
    {
        // LessonsController
        $name = ucwords($this->argument('controllerName'));

        // lessons
        $collection = strtolower(str_replace('Controller', '', $name));

        // lesson
        $resource = str_singular($collection);

        // Lesson
        $model = ucwords($resource);

        return compact('name', 'collection', 'resource', 'model');
    }
Fetch the template data

@return array