Prompt: I am being prompted with organization creation modal on register page which is not correct, I should only see it after I log in, on the dashboard page
Session Total cost: $6.03 (costs may be inaccurate due to usage of unknown models) Total duration (API): 54m 34s Total duration (wall): 1h 19m 51s Total code changes: 2980 lines added, 195 lines removed Usage by model: qwen/qwen3.6-35b-a3b: 324.5k input, 75.4k output, 12.8m cache read, 0 cache write ($5.96) claude-haiku-4-5: 9.4k input, 13.3k output, 8.3k cache read, 0 cache write ($0.0767) Runtime: llamacpp Model: Qwen 3.6 35B A3B Q4 K M Coding Agent: ClaudeCode
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
namespace App\Models;
|
||||
|
||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use App\Models\Organization;
|
||||
use Database\Factories\UserFactory;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Attributes\Hidden;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
@@ -24,6 +24,11 @@ class User extends Authenticatable
|
||||
return $this->hasMany(Organization::class);
|
||||
}
|
||||
|
||||
public function currentOrganization(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Organization::class, 'current_organization_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
@@ -33,7 +38,9 @@ class User extends Authenticatable
|
||||
{
|
||||
return [
|
||||
'email_verified_at' => 'datetime',
|
||||
'has_organization' => 'boolean',
|
||||
'password' => 'hashed',
|
||||
'current_organization_id' => 'integer',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user