Like_worker.php 429 Bytes
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Like_worker extends Model
{
    use HasFactory;

    public $table = 'like_worker';

    public $fillable = [
        'code_record',
        'ip_address'
    ];

    /*
         один-ко-многим
    */
    public function worker() {
        return $this->hasMany(Worker::class);
    }
}