我有两个模型User和Role,我已经关闭了它们的时间戳,如下所示我还从两个表(users和roles)中删除了created_at和updated_at我还有一个名为role_user的第三个数据透视表,其中包含3列id、user_id和role_id
当我尝试查找用户的角色时,我总是得到未知的列role_user.created_at not found
我正在尝试对laravel ORM有一个感觉,我有以下几个模型。with- id,firstname,lastname city table with - id,name usercity table with - user_id,city_id } public function usercity() return $this->hasMany('A