2014-02-14 32 views

回答

2

使用toArray()函數。

User::all()->toArray(); 

Array ([0] => Array ([id] => 1 [email] => 'exam[email protected]' [password] => 'example') [1] => Array ([id] => 2 [email] => '[email protected] [password] => 'example))