caglar
caglar
FFilament
Created by caglar on 1/22/2024 in #❓┊help
How to use an icon like a button
Thanks a lot.
7 replies
FFilament
Created by caglar on 1/22/2024 in #❓┊help
How to use an icon like a button
I'm using TextEntry class in an infolist and it doesn't work with password() method.
7 replies
FFilament
Created by caglar on 1/22/2024 in #❓┊help
How to use an icon like a button
TextEntry::make('password')
->label('Password')
->icon('heroicon-o-key')
->iconColor('primary')
->getStateUsing(function ($record) {
$credential = $record->credentials()->where('loginunpw', 1)->first();

return $credential ? $credential->pass : 'No Password Found';
})
->formatStateUsing(fn ($state): string => Str::mask('secret', '*', 0))
->copyable()
->copyableState(fn (string $state): string => $state)
->copyMessage('Copied!'),
TextEntry::make('password')
->label('Password')
->icon('heroicon-o-key')
->iconColor('primary')
->getStateUsing(function ($record) {
$credential = $record->credentials()->where('loginunpw', 1)->first();

return $credential ? $credential->pass : 'No Password Found';
})
->formatStateUsing(fn ($state): string => Str::mask('secret', '*', 0))
->copyable()
->copyableState(fn (string $state): string => $state)
->copyMessage('Copied!'),
7 replies
FFilament
Created by caglar on 1/18/2024 in #❓┊help
Infolist in a widget
2 replies
FFilament
Created by caglar on 1/17/2024 in #❓┊help
Testing copyableState() method in infolist
2 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
How to replace a password with asteriks in an infolist but keep the value to copy
Here is the last version of my code. I hope it works. Thanks @Leandro Ferreira .
TextEntry::make('password')
->label('Password')
->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass)
->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0'))
->copyable()
->copyableState(fn (string $state): string => $state)
->copyMessage('Copied!'),
TextEntry::make('password')
->label('Password')
->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass)
->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0'))
->copyable()
->copyableState(fn (string $state): string => $state)
->copyMessage('Copied!'),
7 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
How to replace a password with asteriks in an infolist but keep the value to copy
TextEntry::make('password')
->label('Password')
->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass)
->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0'))
->copyable()
->copyMessage('Copied!'),
TextEntry::make('password')
->label('Password')
->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass)
->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0'))
->copyable()
->copyMessage('Copied!'),
I changed my code like this. When I copy the password what the value will be. Real password value or just asteriks like **? I can't test it because I'm working on http and so I can't copy the value.
7 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
How to replace a password with asteriks in an infolist but keep the value to copy
TextEntry::make('password')
->label('Password')
->getStateUsing(function ($record) {
$password = $record->credentials()->where('loginunpw', 1)->first()->pass;
return Str::mask($password, '*', 0);
})
->copyable()
->copyMessage('Copied!'),
TextEntry::make('password')
->label('Password')
->getStateUsing(function ($record) {
$password = $record->credentials()->where('loginunpw', 1)->first()->pass;
return Str::mask($password, '*', 0);
})
->copyable()
->copyMessage('Copied!'),
I found Str::mask() method but I couldn't understand that it does keep the password value?
7 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
How to replace a password with asteriks in an infolist but keep the value to copy
7 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
copyable() method doesn't copy the value
Yes you are correct. Thanks!
4 replies
FFilament
Created by caglar on 1/15/2024 in #❓┊help
copyable() method doesn't copy the value
4 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
Yes you are correct! It's not needed. After removing it, the issue is fixed. Thanks a lot.
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
Here is ViewObject.php
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
Here is AssetsObjectResource.php
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
Thanks @ChesterS for your time and effort. It's appriciated.
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
It's not allowed.
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
I'm sorry but it's company code so I can't share the whole stuff
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
Still doesn't show
35 replies
FFilament
Created by caglar on 1/12/2024 in #❓┊help
Infolist doesn't show the table on the browser
I added suggested code into ViewObject page too
35 replies