2020-04-29 18:15:54 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Form extends Model
|
|
|
|
{
|
2020-05-06 05:42:55 +01:00
|
|
|
public $fillable = [
|
|
|
|
|
|
|
|
'formName',
|
|
|
|
'formStructure',
|
2020-10-21 00:29:50 +00:00
|
|
|
'formStatus'
|
2020-05-06 05:42:55 +01:00
|
|
|
|
|
|
|
];
|
2020-05-08 00:24:56 +01:00
|
|
|
|
2020-05-22 03:49:16 +01:00
|
|
|
public function vacancies()
|
2020-05-08 00:24:56 +01:00
|
|
|
{
|
2020-07-12 06:39:39 +01:00
|
|
|
return $this->hasMany('App\Vacancy', 'vacancyFormID', 'id');
|
2020-05-22 03:49:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function responses()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Response', 'id', 'id');
|
2020-05-08 00:24:56 +01:00
|
|
|
}
|
2020-04-29 18:15:54 +01:00
|
|
|
}
|