Ejemplo n.º 1
0
 /**
  *
  */
 public function testHasAttribute()
 {
     $this->bag->add('foo', 'bar');
     $this->assertTrue($this->bag->has('foo'));
 }
Ejemplo n.º 2
0
 /**
  * An alias for "has" method to provide more readable syntax.
  *
  * @param string $key attribute key
  *
  * @return bool
  */
 public function hasRulesFor($key)
 {
     return $this->attributes->has($key);
 }