Illuminate\Database\Eloquent\Collection Object ( [items:protected] => Array ( ) [escapeWhenCastingToString:protected] => ) 🧨 Undefined array key 0
/home4/foodrkp3/public_html/
ErrorException
Undefined array key 0
    • 52
      vendor/laravel/framework/src/Illuminate/Collections/Collection.php
      Illuminate\Foundation\Bootstrap\HandleExceptions
      :1641
    • 51
      Illuminate\Support\Collection
      :1641
    • 50
      app/Http/Controllers/Frontend/HomeController.php
      App\Http\Controllers\Frontend\HomeController
      :2547
    • 2
      public/index.php
      :51
    • 1
      :21
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1641

1626

1627

1628

1629

1630

1631

1632

1633

1634

1635

1636

1637

1638

1639

1640

1641

1642

1643

1644

1645

1646

1647

1648

1649

1650

1651

1652

1653

1654

1655

1656

#[\ReturnTypeWillChange]

public function offsetExists($key)

{

return isset($this->items[$key]);

}

 

/**

* Get an item at a given offset.

*

* @param mixed $key

* @return mixed

*/

#[\ReturnTypeWillChange]

public function offsetGet($key)

{

return $this->items[$key];

}

 

/**

* Set the item at a given offset.

*

* @param mixed $key

* @param mixed $value

* @return void

*/

#[\ReturnTypeWillChange]

public function offsetSet($key, $value)

{

if (is_null($key)) {

$this->items[] = $value;

} else {