first commit

This commit is contained in:
2026-01-23 17:28:21 +07:00
commit 29ff8992b9
331 changed files with 30545 additions and 0 deletions

27
app/Models/Vocabulary.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Model;
class Vocabulary extends Model
{
use HasFactory, HasUuids;
protected $fillable = [
'word', 'reading', 'romaji', 'meaning_en', 'meaning_id',
'level_id', 'audio_url', 'type', 'stroke_order_svg', 'example_sentences'
];
protected $casts = [
'stroke_order_svg' => 'array',
'example_sentences' => 'array',
];
public function reviews()
{
return $this->hasMany(SrsReview::class);
}
}