Abel Cobreros
Abel Cobreros
Explore posts from servers
TLCTuto's Laravel Corner
Created by Abel Cobreros on 6/28/2024 in #💡filament
Refresh sub navigation after save
Ok so the solution I've found for now is to overwrite the getRedirectUrl() method on the Edit class:
protected function getRedirectUrl(): ?string
{
// Reload page after save to make sure that the sub-navigation menu is
// reloaded to hide/display items depending on certain values.
return MemberResource::getUrl('edit', ['record' => $this->record]);
}
protected function getRedirectUrl(): ?string
{
// Reload page after save to make sure that the sub-navigation menu is
// reloaded to hide/display items depending on certain values.
return MemberResource::getUrl('edit', ['record' => $this->record]);
}
I just redirect to the same page the form I need to check is and it just works.
4 replies
FFilament
Created by Abel Cobreros on 6/28/2024 in #❓┊help
Refresh sub navigation after save
Ok so the solution I've found for now is to overwrite the getRedirectUrl() method on the Edit class:
protected function getRedirectUrl(): ?string
{
// Reload page after save to make sure that the sub-navigation menu is
// reloaded to hide/display items depending on certain values.
return MemberResource::getUrl('edit', ['record' => $this->record]);
}
protected function getRedirectUrl(): ?string
{
// Reload page after save to make sure that the sub-navigation menu is
// reloaded to hide/display items depending on certain values.
return MemberResource::getUrl('edit', ['record' => $this->record]);
}
I just redirect to the same page the form I need to check is and it just works.
4 replies
FFilament
Created by Abel Cobreros on 2/19/2024 in #❓┊help
Issue with halt() on beforeSave and a repeater with relationship
No description
5 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
To be honest I never used sessions with database, but yeah I would keep it as it comes by default
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
glad to help
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
awesome!
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
Is there a reason you have to set the key as a string type? Can't you have the id set to bigInteger like the rest and add a unique "reference" or "code" column?
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
Set $incrementing to false and $keyType to 'string' and see if that works
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
No description
13 replies
FFilament
Created by ericmp on 2/21/2024 in #❓┊help
How to use filament table when record key is not an integer?
How did you configure the model? You would probably need to override these parameters in there
13 replies
FFilament
Created by schwartzmj on 2/21/2024 in #❓┊help
Does Filament play well with laravel-data?
4 replies
FFilament
Created by schwartzmj on 2/21/2024 in #❓┊help
Does Filament play well with laravel-data?
4 replies
FFilament
Created by schwartzmj on 2/21/2024 in #❓┊help
Does Filament play well with laravel-data?
I guess you can always override the create and edit methods on all the resources and you can do there whatever you want in there
4 replies
FFilament
Created by gladjanus43 on 2/21/2024 in #❓┊help
Password reset for different user model
It might be the case yeah I just remembered doing something like that for a non-filament project a while ago but the solution should be related to that contract
12 replies
FFilament
Created by gladjanus43 on 2/21/2024 in #❓┊help
Password reset for different user model
I think you have to create your own ResetPasswordNotificaton version
12 replies
FFilament
Created by gladjanus43 on 2/21/2024 in #❓┊help
Password reset for different user model
No description
12 replies
FFilament
Created by gladjanus43 on 2/21/2024 in #❓┊help
Password reset for different user model
By default laravel does this
12 replies
FFilament
Created by gladjanus43 on 2/21/2024 in #❓┊help
Password reset for different user model
Probably you need to override in the model the sendPasswordResetNotification method from the CanResetPassword contract
12 replies
FFilament
Created by | Frozen Mind | on 2/21/2024 in #❓┊help
Problem with installation of filament packages
Restart apache to make sure the changes apply and close and open the terminal again
9 replies
FFilament
Created by | Frozen Mind | on 2/21/2024 in #❓┊help
Problem with installation of filament packages
I can see you are usign laragon, you can add the php-zip extension there by right clicking the laragon icon > php > extensions > click on the zip option
9 replies