Commit 3985a98f by Taylor Otwell

Added Eloquent::all().

parent a97b8b7f
......@@ -477,7 +477,7 @@ abstract class Eloquent {
{
$model = static::make(get_called_class());
if ($method == 'get')
if ($method == 'get' or $method == 'all')
{
return $model->_get();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment