Airport Guide Documentation

Taxonomy extends Model
in package
uses HasFactory

Taxonomy Model

This model manages taxonomy terms and categories for the CICMS system. It stores taxonomy information, types, and relationships for organizing and categorizing content with tags and categories.

Table of Contents

Properties

$fillable  : array<string|int, string>
The attributes that are mass assignable.

Methods

__construct()  : void
Create a new Taxonomy model instance.
getTaxonomyBySlug()  : Collection
Get taxonomy categories based on the page type slug string.
getTaxonomySlugTag()  : Collection
Get taxonomy tags based on the page type slug string.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['pcm_slug', 'pt_title', 'pt_slug', 'pt_type', 'created_by', 'updated_by', 'created_at', 'updated_at']

Methods

__construct()

Create a new Taxonomy model instance.

public __construct() : void

Sets the table name from configuration constants.

getTaxonomyBySlug()

Get taxonomy categories based on the page type slug string.

public getTaxonomyBySlug(string $pcm_slug) : Collection

This function used to get results based on the page type slug string.

Parameters
$pcm_slug : string

The page type slug

Return values
Collection

Collection of taxonomy categories

getTaxonomySlugTag()

Get taxonomy tags based on the page type slug string.

public getTaxonomySlugTag(string $pcm_slug) : Collection

This function used to get results based on the page type slug string.

Parameters
$pcm_slug : string

The page type slug

Return values
Collection

Collection of taxonomy tags


        
On this page

Search results