Closure table database design pattern implementation for Laravel framework.