🌈 搜索
📅  最后修改于: 2022-03-11 14:54:12.400000             🧑  作者: Mango
use App\Models\User; $user = User::find(1); $user->roles()->attach($roleId);