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