aboutsummaryrefslogtreecommitdiff
path: root/src/CamilStaps/BotleaguesApi/User.php
blob: 161d2858652292292e88c6a30177bb318aa19aa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
namespace CamilStaps\BotleaguesApi;

use Illuminate\Database\Eloquent\Model;

class User extends Model {
	
    protected $table = 'users';
	protected $hidden = ['password', 'remember_token', 'api_key'];
    protected $fillable = ['email', 'password'];

    public function isAdministrator() {
        return (bool) $this->isAdministrator;
    }

}