Ad_employer.php 377 Bytes
<?php

namespace App\Models;

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

class Ad_employer extends Model
{
    use HasFactory;

    /*
     * Связь таблицы employers с таблицей ad_employers
    */
    public function employer() {
        return $this->belongsTo(Employer::class, 'employer_id');
    }
}