feat: Lernapp mit Mathe/Deutsch/Englisch, Münzsystem und Belohnungen
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class Subject extends Model {
|
||||
protected $fillable = ['name','slug','icon','color'];
|
||||
public function questions() { return $this->hasMany(Question::class); }
|
||||
public function activeQuestions() { return $this->questions()->where('active', true); }
|
||||
}
|
||||
Reference in New Issue
Block a user