PabloZagni
emailVerification with Tenant panel problem.
Hi. If the user creates an account in a non-tenant panel, then /user/email-verification/prompt is shown. Great.
But if I add ->tenant(Team::class) to the panel, the user is redirected to / when creating account.
How can I fix this?
2 replies
Special Tenant Case
Hi. I'm developing an Issue tracking system.
Each user belongs to a Team (Sales, Marketing, Development, Support, etc).
Issue model has: title, description, priority, team_id
Any user can create an Issue to other Teams.
But, when the Issue is created, since Team is the tenant, team_id is set to my current tenant instead the team selected in the form.
Is there a way to save the Issue to the database with the selected team_id and not the current tenant?
Thanks
16 replies
Check for user profile complete
Hi! My user model has some extra fields that I would like to be completed. My UserPanel is like this
public function panel(Panel $panel): Panel
{
return $panel
->id('user')
->path('user')
->login()
->profile(MyEditProfile::class, isSimple: false)
->middleware([
VerifyProfileComplete::class
])
But I have many redirects! How can I exclude the VerifyProfileComplete Middleware from the MyEditProfile?
6 replies
Can't access User profile "isSimple:false" on Team tenant
Hi. Trying to get to User's profile (http://app.test/dashboard/profile) This works
public function panel(Panel $panel): Panel
{
return $panel
->tenant(Team::class,
ownershipRelationship:'team',
slugAttribute: 'slug')
->tenantRegistration( RegisterTeam::class )
->tenantProfile( EditTeamProfile::class )
->default()
->id('dashboard')
->path('dashboard')
->login()
->registration() // user can register
->passwordReset() // user can reset password
->emailVerification() // user must verify email
->profile()
This doesn't
->profile(isSimple: false)
It shows error: Missing required parameter for [Route: filament.dashboard.pages.dashboard] [URI: dashboard/{tenant}] [Missing parameter: tenant].
It seams that can't build the URLs of the sidebar.
Any solution?
Thanks
2 replies
Show detail fields of a selected item in a Forms\Components\Select
Hi. My "ContractResource" selects a "person_id". I would like to show the Address, ID, and many other fields of the person on a Card below the Select. Is it possible? Thanks.
2 replies
How to combine multiple fields into one? Address field
Hi, my model has:
$table->string('name');
$table->string('email')->nullable()->unique();
$table->string('phone')->nullable();
$table->string('address')->nullable();
$table->integer('number')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
So, I need to have a searchable TextColumn with the field concatenated like:
4 Pennsylvania Plaza, New York, NY 10001, EE. UU.
I've tryed to create an attirbute
public function getFulladdressAttribute() : string {
return $this->address.' '.$this->number.' '.$this->city', '.$this->state;
}
but it's not found in the database.
Thanks
8 replies