Code A
Code A
FFilament
Created by Code A on 1/21/2025 in #❓┊help
How to Display a "New User" Option When Searching for Users in Filament?
okay, thank you very much for the information
8 replies
FFilament
Created by Code A on 1/21/2025 in #❓┊help
How to Display a "New User" Option When Searching for Users in Filament?
Ah, does that mean I have to use the new capital option? Okay, I'll try it.
8 replies
FFilament
Created by Code A on 12/30/2024 in #❓┊help
Route [login] not defined Error After Password Update in Filament
thank you very much it really worked in my case. is this code to save the new password hash into the session?
14 replies
FFilament
Created by Code A on 12/30/2024 in #❓┊help
Route [login] not defined Error After Password Update in Filament
Here I don't use the save method, I use the submit method because here I use a custom page.
class EditProfile extends Page
{
...
public function submit()
{
$user = Auth::user();
$data = [
...
];
if ($this->password) {
$data['password'] = Hash::make($this->password);
}


$user->update($data);
return redirect()->to('/admin');
}
}
class EditProfile extends Page
{
...
public function submit()
{
$user = Auth::user();
$data = [
...
];
if ($this->password) {
$data['password'] = Hash::make($this->password);
}


$user->update($data);
return redirect()->to('/admin');
}
}
14 replies
FFilament
Created by Code A on 12/30/2024 in #❓┊help
Route [login] not defined Error After Password Update in Filament
for the current solution I added a web.php like this
Route::get('/login', function () { return redirect('/admin/login'); })->name('login');
Route::get('/login', function () { return redirect('/admin/login'); })->name('login');
but the drawback is that the user has to re-login
14 replies
FFilament
Created by Code A on 12/30/2024 in #❓┊help
Route [login] not defined Error After Password Update in Filament
yes I used $panel->profile and I added userMenuItems like this
->profile()
->userMenuItems([
'profile' => MenuItem::make()->url(fn (): string => EditProfile::getUrl())
])
->profile()
->userMenuItems([
'profile' => MenuItem::make()->url(fn (): string => EditProfile::getUrl())
])
because I have some fields that I have to edit also in the profile edit
14 replies
FFilament
Created by Code A on 12/13/2024 in #❓┊help
How to Access Updated Latitude and Longitude in beforeSave in Filament?
Map::make('location') code? The full code looks like this
Map::make('location')
->visible(fn(callable $get, $livewire) => $get('destination_type') === 'umum' && $livewire instanceof \Filament\Resources\Pages\CreateRecord)
->autocomplete('address_custom')
->autocompleteReverse(true)
->defaultLocation([
'lat' => $lat ?? -6.244361430822045,
'lng' => $lng ?? 106.82434694503335,
])
->reactive()
->afterStateUpdated(function ($state, callable $get, callable $set) {
$set('lat', $state['lat']);
$set('lng', $state['lng']);
if (array_key_exists('address_custom', $state)) {
$set('address_custom', $state['address_custom']);
}
})
Map::make('location')
->visible(fn(callable $get, $livewire) => $get('destination_type') === 'umum' && $livewire instanceof \Filament\Resources\Pages\CreateRecord)
->autocomplete('address_custom')
->autocompleteReverse(true)
->defaultLocation([
'lat' => $lat ?? -6.244361430822045,
'lng' => $lng ?? 106.82434694503335,
])
->reactive()
->afterStateUpdated(function ($state, callable $get, callable $set) {
$set('lat', $state['lat']);
$set('lng', $state['lng']);
if (array_key_exists('address_custom', $state)) {
$set('address_custom', $state['address_custom']);
}
})
and I want to show lat and lng data in beforeSave here
class EditAddress extends EditRecord
{
protected function beforeSave(): void
{
$data = $this->form->getState();
dd($data);
}
....
}
class EditAddress extends EditRecord
{
protected function beforeSave(): void
{
$data = $this->form->getState();
dd($data);
}
....
}
10 replies
FFilament
Created by Code A on 12/13/2024 in #❓┊help
How to Access Updated Latitude and Longitude in beforeSave in Filament?
Thanks for the reply. Latitude and longitude are updated successfully using Map::make() and afterStateUpdated. However, when I use dd() in beforeSave, the data from address, lat, and lng is not available. Any suggestions on ensuring this data is available in beforeSave?
10 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
yes you are right it turns out the cache in the filament, thank you very much or the help
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
No description
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
You can see the picture above, it is appropriate to place the LoginResponse.php file which is in app/Http/Responses/LoginResponse.php
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
That's why the error is like this even though the LoginResponse.php location path is correct Target class [App\Http\Responses\LoginResponse] does not exist.
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
No description
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
I've followed the instructions you gave but I'm getting an error like this Target [Filament\Http\Responses\Auth\Contracts\LoginResponse] is not instantiable while building [000000000000013e0000000000000000].
16 replies
FFilament
Created by Code A on 11/14/2024 in #❓┊help
Remove Dashboard Page
No description
16 replies
FFilament
Created by Code A on 9/3/2024 in #❓┊help
How to synchronize filters between Livewire components in Filament Dashboard Custome Page?
I have a situation where I have multiple Livewire Components, such as an Order component and a Driver component. When I interact with the Order component, the Driver component updates automatically. However, the AddressMapWidget does not update automatically, and I have to manually reload the page to see the changes in the AddressMapWidget. Could this be because the AddressMapWidget extends from MapWidget rather than from a Livewire Component? Is there a solution to ensure that the AddressMapWidget updates automatically when I interact with the Order component?
5 replies
FFilament
Created by Code A on 9/3/2024 in #❓┊help
How to synchronize filters between Livewire components in Filament Dashboard Custome Page?
yes I used Livewire3, thank you for providing a reference, I will try it thank you very much
5 replies
FFilament
Created by Code A on 8/30/2024 in #❓┊help
How to make the MapWidget full screen height
#solved
3 replies
FFilament
Created by Code A on 8/27/2024 in #❓┊help
Give default value to TextInput when Edit Data
Oh I understand, thank you very much for the explanation.
16 replies
FFilament
Created by Code A on 8/27/2024 in #❓┊help
Give default value to TextInput when Edit Data
I just started learning laravel
16 replies