src/Controllers/Generator.php
public function initialize($input)
    {
        // Original Name entered
        $this->originalName = Str::title($input['name']);

        //Module
        $this->module = Str::camel($this->originalName);

        //Directory
        $this->directory = Str::camel(Str::singular(title_case($input['directory_name'])));

        //Model
        $this->model = Str::singular(Str::title($input['model_name']));

        //Table
        $this->table = strtolower($input['table_name']);

        //Controller
        $this->controller = Str::plural($this->model).'Controller';

        //Table Controller
        $this->table_controller = Str::plural($this->model).'TableController';

        //Attributes
        $this->attribute = $this->model.'Attribute';
        $this->attribute_namespace = $this->model_namespace;

        //Relationship
        $this->relationship = $this->model.'Relationship';
        $this->relationship_namespace = $this->model_namespace;

        //Repository
        $this->repository = $this->model.'Repository';

        //Requests
        $this->edit_request = 'Edit'.$this->model.'Request';
        $this->store_request = 'Store'.$this->model.'Request';
        $this->create_request = 'Create'.$this->model.'Request';
        $this->update_request = 'Update'.$this->model.'Request';
        $this->delete_request = 'Delete'.$this->model.'Request';
        $this->manage_request = 'Manage'.$this->model.'Request';

        //CRUD Options
        $this->edit = !empty($input['model_edit']) ? true : false;
        $this->create = !empty($input['model_create']) ? true : false;
        $this->delete = !empty($input['model_delete']) ? true : false;

        $model_singular = strtolower(Str::singular($this->model));
        
        //Permissions
        $this->edit_permission = 'edit-'.$model_singular;
        $this->store_permission = 'store-'.$model_singular;
        $this->manage_permission = 'manage-'.$model_singular;
        $this->create_permission = 'create-'.$model_singular;
        $this->update_permission = 'update-'.$model_singular;
        $this->delete_permission = 'delete-'.$model_singular;

        $model_plural = strtolower(Str::plural($this->model));
        
        //Routes
        $this->index_route = 'admin.'.$model_plural.'.index';
        $this->create_route = 'admin.'.$model_plural.'.create';
        $this->store_route = 'admin.'.$model_plural.'.store';
        $this->edit_route = 'admin.'.$model_plural.'.edit';
        $this->update_route = 'admin.'.$model_plural.'.update';
        $this->delete_route = 'admin.'.$model_plural.'.destroy';

        //Events
        $this->events = array_filter($input['event']);

        //Generate Namespaces
        $this->createNamespacesAndValues();
    }
public function initialize($input)
    {
        // Original Name entered
        $this->originalName = Str::title($input['name']);

        //Module
        $this->module = Str::camel($this->originalName);

        //Directory
        $this->directory = Str::camel(Str::singular(title_case($input['directory_name'])));

        //Model
        $this->model = Str::singular(Str::title($input['model_name']));

        //Table
        $this->table = strtolower($input['table_name']);

        //Controller
        $this->controller = Str::plural($this->model).'Controller';

        //Table Controller
        $this->table_controller = Str::plural($this->model).'TableController';

        //Attributes
        $this->attribute = $this->model.'Attribute';
        $this->attribute_namespace = $this->model_namespace;

        //Relationship
        $this->relationship = $this->model.'Relationship';
        $this->relationship_namespace = $this->model_namespace;

        //Repository
        $this->repository = $this->model.'Repository';

        //Requests
        $this->edit_request = 'Edit'.$this->model.'Request';
        $this->store_request = 'Store'.$this->model.'Request';
        $this->create_request = 'Create'.$this->model.'Request';
        $this->update_request = 'Update'.$this->model.'Request';
        $this->delete_request = 'Delete'.$this->model.'Request';
        $this->manage_request = 'Manage'.$this->model.'Request';

        //CRUD Options
        $this->edit = !empty($input['model_edit']) ? true : false;
        $this->create = !empty($input['model_create']) ? true : false;
        $this->delete = !empty($input['model_delete']) ? true : false;

        $model_singular = strtolower(Str::singular($this->model));
        
        //Permissions
        $this->edit_permission = 'edit-'.$model_singular;
        $this->store_permission = 'store-'.$model_singular;
        $this->manage_permission = 'manage-'.$model_singular;
        $this->create_permission = 'create-'.$model_singular;
        $this->update_permission = 'update-'.$model_singular;
        $this->delete_permission = 'delete-'.$model_singular;

        $model_plural = strtolower(Str::plural($this->model));
        
        //Routes
        $this->index_route = 'admin.'.$model_plural.'.index';
        $this->create_route = 'admin.'.$model_plural.'.create';
        $this->store_route = 'admin.'.$model_plural.'.store';
        $this->edit_route = 'admin.'.$model_plural.'.edit';
        $this->update_route = 'admin.'.$model_plural.'.update';
        $this->delete_route = 'admin.'.$model_plural.'.destroy';

        //Events
        $this->events = array_filter($input['event']);

        //Generate Namespaces
        $this->createNamespacesAndValues();
    }
Initialization.

@param array $input