mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 02:01:06 +03:30
fix: change models namespace
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
|
||||
class Option extends Model
|
||||
{
|
||||
public $fillable = ['title', 'input_id'];
|
||||
|
||||
public function input(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Input::class);
|
||||
}
|
||||
|
||||
public function input_value(): HasOne
|
||||
{
|
||||
return $this->hasOne(InputValue::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user