jonnybarnes.uk/app/Models/Contact.php

52 lines
1.3 KiB
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 Eloquent;
use Illuminate\Database\Eloquent\Builder;
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
2020-02-22 11:06:43 +00:00
/**
2020-09-13 17:13:47 +01:00
* App\Models\Contact
2020-02-22 11:06:43 +00:00
*
* @property int $id
* @property string $nick
* @property string $name
* @property string|null $homepage
* @property string|null $twitter
2020-09-13 17:00:45 +01:00
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
2020-02-22 11:06:43 +00:00
* @property string|null $facebook
2020-09-13 17:00:45 +01:00
* @method static Builder|Contact newModelQuery()
* @method static Builder|Contact newQuery()
* @method static Builder|Contact query()
* @method static Builder|Contact whereCreatedAt($value)
* @method static Builder|Contact whereFacebook($value)
* @method static Builder|Contact whereHomepage($value)
* @method static Builder|Contact whereId($value)
* @method static Builder|Contact whereName($value)
* @method static Builder|Contact whereNick($value)
* @method static Builder|Contact whereTwitter($value)
* @method static Builder|Contact whereUpdatedAt($value)
* @mixin Eloquent
2020-02-22 11:06:43 +00:00
*/
2016-05-19 15:01:28 +01:00
class Contact extends Model
{
/**
* 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
}