Ejemplo n.º 1
0
 /**
  * Register a new global scope on the model.
  *
  * @param \Illuminate\Database\Eloquent\ScopeInterface $scope
  * @return void 
  * @static 
  */
 public static function addGlobalScope($scope)
 {
     //Method inherited from \Illuminate\Database\Eloquent\Model
     \Webpatser\Countries\Countries::addGlobalScope($scope);
 }
Ejemplo n.º 2
0
 /**
  * Register a new global scope on the model.
  *
  * @param \Illuminate\Database\Eloquent\Scope|\Closure|string $scope
  * @param \Closure|null $implementation
  * @return mixed 
  * @throws \InvalidArgumentException
  * @static 
  */
 public static function addGlobalScope($scope, $implementation = null)
 {
     //Method inherited from \Illuminate\Database\Eloquent\Model
     return \Webpatser\Countries\Countries::addGlobalScope($scope, $implementation);
 }