🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.

This commit is contained in:
BT
2026-05-02 22:00:26 +01:00
parent 63aed880e1
commit 04e3e30fcf
54 changed files with 3440 additions and 298 deletions
+7 -11
View File
@@ -2,7 +2,6 @@
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Http\UploadedFile;
@@ -19,16 +18,17 @@ use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable implements CipherSweetEncrypted
{
use UsesCipherSweet;
use HasFactory;
use Notifiable;
use HasRoles;
use HasApiTokens;
use HasFactory;
use HasRoles;
use Notifiable;
use UsesCipherSweet;
protected $guarded = [];
/**
* The attributes that should be hidden for serialization.
*
* @var array
*/
protected $hidden = [
@@ -40,6 +40,7 @@ class User extends Authenticatable implements CipherSweetEncrypted
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
@@ -60,7 +61,7 @@ class User extends Authenticatable implements CipherSweetEncrypted
public static function configureCipherSweet(EncryptedRow $encryptedRow): void
{
$map = (new JsonFieldMap())
$map = (new JsonFieldMap)
->addTextField('url')
->addTextField('read_key')
->addTextField('wallet_id');
@@ -81,11 +82,6 @@ class User extends Authenticatable implements CipherSweetEncrypted
->addBlindIndex('email', new BlindIndex('email_index'));
}
public function orangePills()
{
return $this->hasMany(OrangePill::class);
}
public function meetups()
{
return $this->belongsToMany(Meetup::class);