我有一个复杂的记录存储在会话中。我想在会话中更新此记录的部分内容,然后使用会话数据更新数据库行。到目前为止,我已经设法覆盖整个结构,而不仅仅是我想要的部分。 实施例: base <-- whole record
base.field1 <-- single field
base.field2 <-- single field
base.field3 <-- single f
为什么我的播种机代码中的“关系”不起作用?它插入到用户模型没有任何问题。但是不会向UserMeta模型插入任何内容。甚至没有任何错误。 我已经在控制器中测试过这段代码。它运行罚款与 “关系” <?php
use Illuminate\Database\Seeder;
use App\User;
use App\UserMeta;
class MyUsersTableSeeder ext