<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
//Authenticatable 继承
//vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php 数据库的方法都继承了
class User extends Authenticatable
{
use Notifiable;
protected $table = "users"; /**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'password',
]; /**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password'
];
public function setPasswordAttribute($value){
$this->attributes['password'] = bcrypt($value);
}
/**
* The attributes that should be cast to native types.
*
* @var array
*/
// protected $casts = [
// 'email_verified_at' => 'datetime',
// ];
}

最新文章

  1. AC自动机+DP HDOJ 2457 DNA repair(DNA修复)
  2. OpenCV2邻域和模板操作
  3. 调试技巧--Windows端口号是否被占用
  4. phpStorm连接mysql
  5. 图论(网络流):UVa 1659 - Help Little Laura
  6. 利用Azure backup备份和恢复Azure虚拟机(1)
  7. IOS开发-UI学习-使用UIImageView控件制作动画
  8. jenkins外网slave配置
  9. commanderJs编写命令行工具(cli)
  10. ML激活函数使用法则
  11. python 多文件知识
  12. JS实现用特殊符号替换字符串的中间部分区域
  13. 修改sga_max_size大小后重启数据库报 ORA-00851
  14. linux根文件系统制作,busybox启动流程分析
  15. sqlmap自动注入
  16. zabbix日常监控项mysql(七)
  17. P3758 [TJOI2017]可乐
  18. CSS 超出隐藏实现限制字数的功能代码(多浏览器支持)
  19. 009PHP文件处理——文件处理 file_get_contents file_put_contents fgetc fgets fgetss
  20. (接上一条)解决ssh隧道断开自动重连的问题

热门文章

  1. CentOS7 一个网卡配置多个IP地址
  2. oracle数据库连接数反推公式
  3. Python 抓取数据存储到Redis中
  4. js 外部引用文件与 onload()函数的优先级
  5. EMQ插件组合实现物联网边缘平台的设备通信管理
  6. 盒模型 box-sizing 属性
  7. const char* to char*(当函数传递参数时)
  8. python_面试题_DB相关问题
  9. 【VS开发】【智能语音处理】语音信号处理之(一)动态时间规整(DTW)
  10. 拉格朗日乘法与KKT条件