Dorong kunci dan nilai di Laravel

public function index()
{
    $collection = collect(['id' => 1, 'name' => 'Hardik']);
  
    $collection->put('role', 'admin');
   
    $collection->all();
      
    dd($collection);
}
Kind Katipo