BUB-19 - Aggiunto tabella gestione Progetti e prime funzioni nel model

This commit is contained in:
2023-04-12 16:16:26 +02:00
parent e95f5b2e14
commit 6d759ffacd
5 changed files with 158 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\DB;
use Laravel\Sanctum\HasApiTokens;
//use LdapRecord\Laravel\Auth\Authenticatable;
use LdapRecord\Laravel\Auth\AuthenticatesWithLdap;
@@ -61,4 +62,9 @@ class User extends Authenticatable
$user= new User();
$user->assignGroup($gruppo);
}
public static function getUserById($id)
{
return DB::table('users')->orderBy('name')->get();
}
}