Add new location and user management via CLI

This commit is contained in:
Dane Everitt 2017-09-15 22:13:33 -05:00
parent a498bbc7d5
commit 542d1f8db7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 395 additions and 33 deletions

View file

@ -300,6 +300,16 @@ class User extends Model implements
$this->attributes['username'] = strtolower($value);
}
/**
* Return a concated result for the accounts full name.
*
* @return string
*/
public function getNameAttribute()
{
return $this->name_first . ' ' . $this->name_last;
}
/**
* Returns all permissions that a user has.
*