feat: add quetions feature

This commit is contained in:
2025-09-08 17:11:52 +03:30
parent 4c933782f4
commit 2e9a278a53
10 changed files with 384 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Question extends Model
{
protected $fillable = ['title', 'category_id'];
public function tags()
{
return $this->belongsToMany(Tag::class);
}
public function category()
{
return $this->belongsTo(Category::class);
}
}