diff --git a/laravel/database/eloquent/model.php b/laravel/database/eloquent/model.php index 68aee066..25151ac7 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -201,16 +201,6 @@ abstract class Model { return static::query(get_called_class())->where('id', '=', $id)->first(); } - /** - * Get the first model result - * - * @return mixed - */ - private function _first() - { - return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null; - } - /** * Get an array of models from the database. * @@ -221,6 +211,16 @@ abstract class Model { return Hydrator::hydrate($this); } + /** + * Get the first model result + * + * @return mixed + */ + private function _first() + { + return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null; + } + /** * Retrieve the query for a 1:1 relationship. * diff --git a/public/index.php b/public/index.php index 3ef965ad..58032d5d 100644 --- a/public/index.php +++ b/public/index.php @@ -48,4 +48,4 @@ $public = __DIR__; | 3... 2... 1... Lift-off! |-------------------------------------------------------------------------- */ -require $laravel.'/laravel.php'; \ No newline at end of file +require $laravel.'/laravel.php';