From faaadab8715de520d6cd8d3362d15e2ccdf1e1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Blanco?= Date: Thu, 18 Dec 2014 10:31:07 +0000 Subject: [PATCH] Adding getGuarded() getter. Is there any particular reason why this one has not been created initially? --- src/Illuminate/Database/Eloquent/Model.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index e876eca6372c..bc399431dcd0 100755 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -2083,6 +2083,16 @@ public function fillable(array $fillable) return $this; } + + /** + * Get the guarded attributes for the model. + * + * @return array + */ + public function getGuarded() + { + return $this->guarded; + } /** * Set the guarded attributes for the model.