我有三个表:用户、条目和user_items。用户有许多项,一个项属于许多用户。Usersusernameidequipable
iditem_id模型: public function items() return $this->belongsToMany('Item', 'user_items')
嘿,伙计们,我是新来的拉拉,我正试着把它插入我的枢轴桌子。我的数据库中有这个结构部门表属于许多类别,与类别相同,因此我有以下模型 use Illuminate\Auth\Reminders\RemindableInterface;
* The database table used by the model. * @var stringprotected $table = 'department