jonnybarnes.uk/app/Models/Contact.php

30 lines
567 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
declare(strict_types=1);
2017-12-19 16:00:42 +00:00
namespace App\Models;
2016-05-19 15:01:28 +01:00
2020-09-13 17:00:45 +01:00
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
2016-05-19 15:01:28 +01:00
use Illuminate\Database\Eloquent\Model;
2020-09-13 17:00:45 +01:00
use Illuminate\Support\Carbon;
2016-05-19 15:01:28 +01:00
class Contact extends Model
{
use HasFactory;
2016-05-19 15:01:28 +01:00
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'contacts';
/**
2017-07-17 17:07:08 +01:00
* We shall guard against mass-migration.
2016-05-19 15:01:28 +01:00
*
* @var array
*/
2017-07-17 17:07:08 +01:00
protected $fillable = ['nick', 'name', 'homepage', 'twitter', 'facebook'];
2016-05-19 15:01:28 +01:00
}