Example #1
0
 /**
  *
  */
 public function testGetAllAttributes()
 {
     $this->bag->add('one', 'two');
     $this->bag->add('three', 'four');
     $this->assertEquals(['one' => 'two', 'three' => 'four'], $this->bag->all());
 }
Example #2
0
 /**
  * Get a list of all attributes names from the attribute bags.
  *
  * @return array
  */
 public function attributes()
 {
     return array_keys($this->attributes->all());
 }