rbrecruiter/app/Form.php

27 lines
413 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'
2020-05-06 04:42:55 +00:00
];
public function vacancies()
{
return $this->hasMany('App\Vacancy', 'vacancyFormID', 'id');
}
public function responses()
{
return $this->belongsTo('App\Response', 'id', 'id');
}
}