mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
feat: add factory for models
This commit is contained in:
@@ -2,12 +2,15 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
|
||||
class Option extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public $fillable = ['title', 'input_id'];
|
||||
|
||||
public function input(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user