标签: php laravel eloquent
我需要这方面的帮助,我想从两个或两个以上的模型中获取子句并在laravel 5中获取选定的字段。
<?php //I was trying this but it didn't worked $this->users-> with('contacts', 'orders')-> get(array('users.id', 'contacts.phone', 'orders.price; ?>