| 1 | <?php |
||
| 13 | class Day extends Model |
||
| 14 | { |
||
| 15 | // use Nameable; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The attributes that are mass assignable. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $fillable = ['name','code','lective']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Convert the model to its string representation. |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function __toString() |
||
| 33 | |||
| 34 | public function lessons() |
||
| 38 | } |
||
| 39 |