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