mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
95ea40a7c4
The model classes encapsulate knowledge about the database that may change. That knowledge may be table names, or the value of constants (such as `Group::MEMBER_ID` in this case). Models may even disappear after a while due to refactorings. In all these cases, this migration would break. Thus, we use Laravel's query builder features which makes building queries almost as easy as using the model - but correct in all cases. :-) |
||
---|---|---|
.. | ||
2015_05_11_000000_create_posts_likes_table.php | ||
2015_09_04_000000_add_default_like_permissions.php |