mirror of
https://github.com/nihonbuzz/nihonbuzz-academy.git
synced 2026-01-26 21:41:54 +07:00
first commit
This commit is contained in:
27
app/Models/Vocabulary.php
Normal file
27
app/Models/Vocabulary.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user