Blame view

app/Models/Like_worker.php 429 Bytes
dc2a9a876   Андрей Ларионов   Коммит на понедел...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?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);
      }
  }