HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/spilicensing/app/License.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class License extends Model
{
    protected $fillable = ['licenseKey', 'licenseType_id', 'maxActivations', 'product_id', 'subproduct_id', 'expiration', 'duration', 'vendor_id', 'batch'];
    protected $casts = [
        'maxActivations' => 'integer'
    ];

    public function licenseType() {
        return $this->belongsTo('App\LicenseType', 'licenseType_id');
    }

    public function product() {
        return $this->belongsTo('App\Product', 'product_id');
    }

    public function subproduct() {
        return $this->belongsTo('App\Subproduct', 'subproduct_id');
    }

    public function vendor() {
        return $this->belongsTo('App\Vendor', 'vendor_id');
    }

    public function purchaser() {
        return $this->belongsTo('App\Purchaser', 'purchaser_id');
    }

    public function systems() {
        return $this->belongsToMany('App\System');
    }
}