# fluent-cart/1.6.4/app/Models/LabelRelationship.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 38 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/LabelRelationship.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Models/LabelRelationship.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/LabelRelationship.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Models;

use FluentCart\Framework\Database\Orm\Relations\MorphTo;

/**
 *  Label Relationship Model - DB Model for Label Relationship table
 *
 *  Database Model
 *
 * @package FluentCart\App\Models
 *
 * @version 1.0.0
 */
class LabelRelationship extends Model
{
	protected $table = 'fct_label_relationships';

	protected $fillable = [
		'label_id',
		'labelable_id',
		'labelable_type',
	];

    protected $casts = [
        'label_id'   => 'integer',
    ];

    /**
     * Get the parent labelable model (order etc).
     */
    public function labelable(): MorphTo
    {
        return $this->morphTo();
    }
}

```
