File size: 336 Bytes
dfcff8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;

class User extends Model
{
    protected $fillable = ['username', 'password', 'profile', 'team_id', 'tags'];

    protected $hidden = ['password'];

    public function team()
    {
        return $this->belongsTo(Team::class);
    }
}