delete index array laravel code example
Example: php remove item array
$items = ['banana', 'apple'];
unset($items[0]);
var_dump($items); // ['apple']
$items = ['banana', 'apple'];
unset($items[0]);
var_dump($items); // ['apple']