Array Helper Array_push Laravel

use Illuminate\Support\Arr;

$array = Arr::add(['name' => 'Desk'], 'price', 100);

// or this one:
  
  
$array = Arr::add($array, 'price', 100);


Excited Elephant