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

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

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/ShippingClass.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Models/ShippingClass.php
- Modified: 2026-04-20T13:45:50+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/ShippingClass.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Models;

use FluentCart\App\Models\Concerns\CanSearch;

/**
 * Shipping Class Model - DB Model for Shipping Classes
 *
 * @package FluentCart\App\Models
 * @version 1.0.0
 */
class ShippingClass extends Model
{
    use CanSearch;

    protected $table = 'fct_shipping_classes';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',
        'description',
        'cost',
        'type',
        'per_item'
    ];

    /**
     * The attributes that should be cast.
     *
     * @var array
     */
    protected $casts = [
        'cost' => 'float'
    ];

    public function zones(): \FluentCart\Framework\Database\Orm\Relations\HasMany
    {
        return $this->hasMany(ShippingZone::class, 'shipping_class_id', 'id');
    }
}

```
