试图找出如何获取我的多到多(多态)关系中的两个相关模型(显然是联合的)。我们拥有的:
DesignPack.Bucket和3模型:桶、模板和与模板和DesignPack具有多到多(多态)的关系(这意味着我们有枢轴表的可移植性).In精粹桶可以与模板和DesignPack.Laravel`bucket_id` as `pivot_bucket_id`, `bucke
我不能使用多对多多态关系在急切加载中选择列Etape::with(array('entreprises'=> function($query) {}))->get();class Etape extends Eloquent {
public function entreprises`etape_id` as `
我有laravel网络应用程序,并在离子与sqlite数据库框架实施它。如何查询关系数据库。例如,subjects->belongsToMany->students在此关系中,laravel运行两个查询(根据laravel-debug)
1. select * from "subjects"subject_id" as "pivot_subject_id", "student_subject&qu