1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00
my-idlers/app/Models/LabelsAssigned.php
cp6 aadfc481ac timestamps false for LabelsAssigned
timestamps false for LabelsAssigned
2023-09-11 23:32:07 +10:00

28 lines
537 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 $timestamps = 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');
}
}