2016-05-19 15:01:28 +01:00
|
|
|
<?php
|
|
|
|
|
2018-01-15 14:02:13 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-12-19 16:00:42 +00:00
|
|
|
namespace App\Models;
|
2016-05-19 15:01:28 +01:00
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2020-02-22 11:06:43 +00:00
|
|
|
/**
|
|
|
|
* App\Models\Contact
|
|
|
|
*
|
|
|
|
* @property int $id
|
|
|
|
* @property string $nick
|
|
|
|
* @property string $name
|
|
|
|
* @property string|null $homepage
|
|
|
|
* @property string|null $twitter
|
|
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
|
|
* @property string|null $facebook
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact newModelQuery()
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact newQuery()
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact query()
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereCreatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereFacebook($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereHomepage($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereId($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereName($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereNick($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereTwitter($value)
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereUpdatedAt($value)
|
|
|
|
* @mixin \Eloquent
|
|
|
|
*/
|
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
|
|
|
}
|