Bulletinboard/app/Models/TimePeriod.php

20 lines
311 B
PHP
Raw Normal View History

2021-02-24 09:01:35 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TimePeriod extends Model
{
use HasFactory;
protected $fillable = [
"name"
];
public function post(){
return $this->hasMany(Post::class);
}
}