ldc-gen-game-web/app/Models/FaqThemes.php
2020-10-26 13:47:52 +01:00

16 lines
326 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class FaqThemes extends Model
{
protected $table = "faq_themes";
protected $fillable = ["name"];
protected $with = ['questions'];
public function questions() {
return $this->hasMany('App\Models\FaqQuestions', 'theme_id');
}
}