2020-04-29 17:15:54 +00:00
|
|
|
<?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-07 23:24:56 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
public function vacancies()
|
2020-05-07 23:24:56 +00:00
|
|
|
{
|
2020-07-12 05:39:39 +00:00
|
|
|
return $this->hasMany('App\Vacancy', 'vacancyFormID', 'id');
|
2020-05-22 02:49:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function responses()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Response', 'id', 'id');
|
2020-05-07 23:24:56 +00:00
|
|
|
}
|
2020-04-29 17:15:54 +00:00
|
|
|
}
|