<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;

class WeeklyReport extends Model {
	protected $table = 'weekly_report';
	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = [
			'jilv',
			'neirong',
			'wenti',
			'qingkuang',
			'teacher_id',
			'created_date',
			'teacher_name'
	];
	public function teacher() {
		return $this->hasOne ( 'App\Models\Teacher', 'id', 'teacher_id' );
	}
}
