1forget()
2The forget method removes an item from the collection by its key:
3
4$collection = collect(['name' => 'taylor', 'framework' => 'laravel']);
5
6$collection->forget('name');
7
8$collection->all();
9
10// ['framework' => 'laravel']
11
12Another example
13
14$permissions->forget([2, 3, 4]);
15
16Source
17https://laravel.com/docs/8.x/collections#method-forget