shareit/app/User.php

36 lines
649 B
PHP
Raw Normal View History

2018-09-07 23:12:34 +00:00
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
2018-09-11 23:48:09 +00:00
public function products()
{
return $this->hasMany(Product::class);
}
2018-09-07 23:12:34 +00:00
}