laravel-learn-bbs/app/Models/Category.php

15 lines
188 B
PHP
Raw Normal View History

<?php
namespace App\Models;
class Category extends BaseModel
{
protected $guarded = ['id'];
2018-01-01 06:51:46 +00:00
public function topics()
{
return $this->hasMany(Topic::class);
}
}