Kerchack
Kerchack
FFilament
Created by Kerchack on 9/22/2023 in #❓┊help
Composed table column
No description
15 replies
FFilament
Created by Kerchack on 9/13/2023 in #❓┊help
Table resource with Stacked avatars and it's alt or title attribute
¿Is there a way of show multiple user avatar images stacked an it's titles qhen hover on images? I need to show User's names. Edit ---- I need something like this
Tables\Columns\TextColumn::make('description'),
ImageColumn::make('users.profile_image')
->defaultImageUrl( function (Training $record) {
$hash = md5(strtolower(trim($record->users[0]->email)));
return "https://www.gravatar.com/avatar/{$hash}.jpg";
})
->circular()
->stacked()
->extraImgAttributes( function (Training $record) {
foreach ($record->users as $user) {
return [
'alt' => "{$user->name} avatar",
'title' => "{$user->name}",
];
}
}),
Tables\Columns\TextColumn::make('description'),
ImageColumn::make('users.profile_image')
->defaultImageUrl( function (Training $record) {
$hash = md5(strtolower(trim($record->users[0]->email)));
return "https://www.gravatar.com/avatar/{$hash}.jpg";
})
->circular()
->stacked()
->extraImgAttributes( function (Training $record) {
foreach ($record->users as $user) {
return [
'alt' => "{$user->name} avatar",
'title' => "{$user->name}",
];
}
}),
3 replies
FFilament
Created by Kerchack on 9/1/2023 in #❓┊help
Asigning role to existant user on Team
No description
6 replies
FFilament
Created by Kerchack on 8/31/2023 in #❓┊help
Assign current team when User is created
I have managed to integrate roles and permissions with users and multi-tenancy. My issue arises when registering a new user. I have created a new resource and properly associated the relationships between Team and User. In the user creation form, I have added the necessary fields to register a user. However, upon registration, the user is not being assigned to the current team. I am unsure which file I need to configure in order to assign the current team as soon as the user is saved.
14 replies