Register form and functionally

This commit is contained in:
Kyle
2017-08-11 16:50:14 +00:00
parent edf49f0869
commit ca74df94da
7 changed files with 103 additions and 79 deletions

View File

@@ -60,6 +60,10 @@ class User extends Authenticatable
'name',
'email',
'password',
'airline_id',
'home_airport_id',
'curr_airport_id',
'rank_id'
];
/**
@@ -86,14 +90,6 @@ class User extends Authenticatable
return $this->airline->code.str_pad($this->id, 3, '0', STR_PAD_LEFT);
}
public function gravatar()
{
$size = 80;
$default = 'https://en.gravatar.com/userimage/12856995/7c7c1da6387853fea65ff74983055386.png';
return "https://www.gravatar.com/avatar/" .
md5( strtolower( trim( $this->email) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
}
/**
* Foreign Keys
*/