Skip to content

Table namespaces#256

Open
izica wants to merge 2 commits into
reliese:v1.xfrom
izica:feature-table-namespaces
Open

Table namespaces#256
izica wants to merge 2 commits into
reliese:v1.xfrom
izica:feature-table-namespaces

Conversation

@izica

@izica izica commented Mar 29, 2023

Copy link
Copy Markdown

Make it possible to create a nested (unlimited depth) structure of models.

For example:

Tables:
users
task_tracker__task

Output models folder structure:

  • Base
    • User.php
  • User.php
  • TaskTracker
    • Base
      • Task.php
    • Task.php

namespace in Task.php: namespace App\Models\TaskTracker;

@finiteinfinity finiteinfinity left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the approach, but this introduces a significant breaking change. Ideally, this should be opt-in via a new config value rather than enabled by default. Also, the table separator should be configurable too, rather than hard-coded to fit your specific use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants