my-idlers/app/Models/LabelsAssigned.php
2023-08-19 23:46:18 +10:00

26 lines
504 B
PHP

<?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'];
protected $keyType = 'string';
public function label(): \Illuminate\Database\Eloquent\Relations\HasOne
{
return $this->hasOne(Labels::class, 'id', 'label_id');
}
}