public function index() { $items = Item::all(); foreach ($items as $item) { echo $item->name . '<br/>'; } return 'In index page of items'; }
function getExample6() { //UPDATE $item = new Item(); $item = $item->find(41); dump($item->toArray()); $items = Item::all(); dump($items->toArray()); }