BUB-19 Realizzato lista e inserimento nuovo progetto
This commit is contained in:
@@ -64,6 +64,10 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
public static function getUserById($id)
|
||||
{
|
||||
return DB::table('users')->where('id','=',$id)->get();
|
||||
}
|
||||
public static function getUsers()
|
||||
{
|
||||
return DB::table('users')->orderBy('name')->get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user