-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: Laravel
-
None
-
None
-
PHP Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
The method MongoDB\Laravel\Connection::collection() is an alias for Laravel’s Illuminate\Database\ConnectionInterface::table(). I guess it was introduced when the package was created to fit MongoDB’s wording.
To ensure consistency with Laravel, using `DB::table()` is fine.
Nice to have: Rector rule to change from the method call.
- is fixed by
-
PHPORM-216 Remove support for Model::$collection. $table is fine
-
- Closed
-