mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 21:21:08 +03:30
20 lines
321 B
PHP
20 lines
321 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Option extends Model
|
|
{
|
|
public $fillable = ['title','input_id'];
|
|
public function input()
|
|
{
|
|
return $this->belongsTo('App\Input');
|
|
}
|
|
public function input_value()
|
|
{
|
|
return $this->hasOne('App\InputValue');
|
|
}
|
|
|
|
}
|