src/Collection.php
public function toArray()
	{
		$response = array();

		foreach ($this->items as $key => $item)
		{
			$response[] = $item->toArray();
		}

		return $response;
	}
public function toArray()
	{
		$response = array();

		foreach ($this->items as $key => $item)
		{
			$response[] = $item->toArray();
		}

		return $response;
	}
public function toArray ( ) { $ response = array ( ) ; foreach ( $ this -> items as $ key => $ item ) { $ response [ ] = $ item -> toArray ( ) ; } return $ response ; }
Return collection as array
@return array
Return collection as array