commen hours

This commit is contained in:
2018-03-21 11:07:32 +01:00
parent 3241cc0c67
commit 0fd25f359b
11 changed files with 282 additions and 95 deletions
+10
View File
@@ -45,6 +45,16 @@ class User extends BaseModel {
return $userrole;
}
public static function getUserWithprojects()
{
$usersWithProjects =
User::selectRaw( "users.id, CONCAT(users.firstname, ' ', users.middlename, ' ', users.lastname) AS fullname" )
->with( 'projectemployees.project' )
->get();
return $usersWithProjects;
}
public static function checkUsername( $username )
{
$username = strtoupper( $username );