Пример #1
0
 /**
  * @test
  */
 public function it_returns_a_new_builder_for_its_taxonomy_if_not_registered_yet()
 {
     $this->assertInstanceOf(Builder::class, Taxonomy::make('non_existent_tax'));
 }
Пример #2
0
 /**
  * Get the Taxonomy model.
  *
  * @return Taxonomy|\Silk\Taxonomy\Builder
  */
 public static function taxonomy()
 {
     return Taxonomy::make(static::TAXONOMY);
 }