Files
Ekapp/skolehjem/app/Contact.php
T
Anders a78e7d90f6 Fixed - Guides
Added - contacts visual (controller coming soon)
2020-08-05 09:23:57 +02:00

21 lines
595 B
PHP

<?php
//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;
//allows the use of Model library
use Illuminate\Database\Eloquent\Model;
//Class of which should extend Model Library
class Contact extends Model
{
//protected variable which contains name of database field(s) to be filled.
protected $fillable = [
'contactname', "title", 'email', 'phone', 'phonetimes'
];
}