Ekapp/skolehjem/app/MenuPlan.php

21 lines
594 B
PHP
Raw Normal View History

<?php
2020-07-27 08:43:22 +00:00
//The Model to a certain Controller, should contain a class with Controller name to which it belongs.
// Allows needed strings to passed onto the database. if there is none. class should appear empty.
//Reference to where the file belongs.
namespace App;
2020-07-27 08:43:22 +00:00
//allows the use of Model library
use Illuminate\Database\Eloquent\Model;
//Class of which should extend Model Library
class MenuPlan extends Model
{
//protected variable which contains name of database field(s) to be filled.
2020-06-26 11:11:24 +00:00
protected $fillable = [
'week', 'monday', "tuesday", 'wednesday', 'thursday'
2020-06-26 11:11:24 +00:00
];
}