BlogMatch/app/Admin.php

43 lines
712 B
PHP

<?php
/**
* Created by Reliese Model.
* Date: Sun, 29 Jul 2018 08:54:26 +0000.
*/
namespace App;
use Illuminate\Database\Eloquent\Model as Eloquent;
/**
* Class Admin
*
* @property string $ID
* @property string $password
* @property string $name
* @property string $nick_name
* @property string $phone_number
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
*
* @package App
*/
class Admin extends Eloquent
{
protected $connection = 'mysql';
protected $table = 'admin';
protected $primaryKey = 'ID';
public $incrementing = false;
protected $hidden = [
'password'
];
protected $fillable = [
'password',
'name',
'nick_name',
'phone_number'
];
}