Remove support for Model::$collection. $table is fine

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Laravel uses the property $table to customize the table name. In Laravel-MongoDB, you can use both $table or $collection for this.
      We can deprecate support for $collection in v4.last and remote it in v5.
      Provide a Rector rule to make the update would be easy.

      For reference, we were close to a breaking change https://github.com/laravel/framework/pull/52186

      https://github.com/laravel/framework/pull/52171#discussion_r1683412186

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: