mirror of
https://github.com/nihonbuzz/nihonbuzz-academy.git
synced 2026-01-27 02:41:58 +07:00
first commit
This commit is contained in:
24
app/Models/Level.php
Normal file
24
app/Models/Level.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Level extends Model
|
||||
{
|
||||
use HasFactory, HasUuids;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function courses(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(Course::class);
|
||||
}
|
||||
|
||||
public function vocabularies(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(Vocabulary::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user