Ekapp/skolehjem/app/Contact.php

21 lines
595 B
PHP
Raw Permalink Normal View History

2020-06-29 06:50:50 +00:00
<?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.
2020-06-29 06:50:50 +00:00
namespace App;
2020-07-27 08:43:22 +00:00
//allows the use of Model library
2020-06-29 06:50:50 +00:00
use Illuminate\Database\Eloquent\Model;
//Class of which should extend Model Library
2020-06-29 06:50:50 +00:00
class Contact extends Model
{
//protected variable which contains name of database field(s) to be filled.
2020-06-29 08:30:09 +00:00
protected $fillable = [
'contactname', "title", 'email', 'phone', 'phonetimes'
2020-06-29 08:30:09 +00:00
];
2020-06-29 06:50:50 +00:00
}