From 9a67d9132f0e2b9ed5d668aaa8a2ebc7d4dd6d49 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 26 Aug 2014 10:54:34 +0200 Subject: [PATCH] Skip decrement/increment They are a bit weird. --- src/Alias.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Alias.php b/src/Alias.php index 58aeb7e..3996931 100644 --- a/src/Alias.php +++ b/src/Alias.php @@ -53,7 +53,10 @@ class Alias $this->addClass($this->root); $this->detectNamespace(); $this->detectClassType(); - + + if($facade === '\Illuminate\Database\Eloquent\Model'){ + $this->usedMethods = array('decrement', 'increment'); + } } /**