Added Eloquent::all().

This commit is contained in:
Taylor Otwell
2011-06-24 11:33:42 -07:00
parent a97b8b7fda
commit 3985a98f60

View File

@@ -477,7 +477,7 @@ abstract class Eloquent {
{ {
$model = static::make(get_called_class()); $model = static::make(get_called_class());
if ($method == 'get') if ($method == 'get' or $method == 'all')
{ {
return $model->_get(); return $model->_get();
} }