rbrecruiter/app/Form.php

27 lines
411 B
PHP
Raw Normal View History

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Form extends Model
{
2020-05-06 04:42:55 +00:00
public $fillable = [
'formName',
'formStructure',
'formStatus'
];
public function vacancies()
{
return $this->hasMany('vacancies', 'vacancyFormID', 'id');
}
public function responses()
{
return $this->belongsTo('App\Response', 'id', 'id');
}
}