my-idlers/app/Models/LabelsAssigned.php

26 lines
456 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LabelsAssigned extends Model
{
use HasFactory;
public $incrementing = false;
public $table = 'labels_assigned';
protected $fillable = ['label_id', 'service_id'];
2022-07-22 15:49:18 +02:00
protected $keyType = 'string';
public function label()
{
return $this->hasOne(Labels::class, 'id', 'label_id');
}
}