first()) { $role->permissions()->attach([$permission->id]); } }); } }