mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
20058cb9c9
Issue 56 & 57 fix?
26 lines
456 B
PHP
26 lines
456 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()
|
|
{
|
|
return $this->hasOne(Labels::class, 'id', 'label_id');
|
|
}
|
|
|
|
}
|