Zwifs
Zwifs
Explore posts from servers
FFilament
Created by Zwifs on 5/14/2025 in #❓┊help
Panel login - 405 Method Not Allowed
Oops! An Error Occurred The server returned a "405 Method Not Allowed". Something is broken. Please
5 replies
FFilament
Created by Zwifs on 5/8/2025 in #❓┊help
Change action color and "reload" page
Hi! I'm working on a simple resource, and want to add a refresh button to delete the cache, I want to change the action color and reload the form when done. How can I implement this? For the color I found the ->color method but that did not do anything.
class ManageChannels extends ManageRecords
{
protected static string $resource = ChannelResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
Actions\Action::make('refresh')
->action(function () {
Cache::delete('discord_service.getChannelList');
}),
];
}
}
class ManageChannels extends ManageRecords
{
protected static string $resource = ChannelResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
Actions\Action::make('refresh')
->action(function () {
Cache::delete('discord_service.getChannelList');
}),
];
}
}
2 replies
DDokploy
Created by Zwifs on 10/28/2024 in #old-help
How to use the backup endpoint?
I ended up at the point I wanted to use backup. The only option I saw as available is the endpoint, tho the information seems limited. https://docs.dokploy.com/en/docs/api/reference-api/reference-backup I'm not really sure on how to create a full or either a specfic backup. Are there any examples people have? Sadly there is also no interface for scheduling them
12 replies
DDokploy
Created by Zwifs on 10/20/2024 in #old-help
Setting up a Laravel app
Hi, I'm trying to get a Laravel application running, I have used this Dockerfile before but I cannot get it to work. Does anyone got a Laravel app to work? I would like a small package that is as performant as possible, along side I want to bake in the Queue & Scheduler within each image or create a separate image for it
1 replies
DDeno
Created by Zwifs on 7/25/2024 in #help
Difference between "deno test" and "VSCode Runner UI"
No description
2 replies
FFilament
Created by Zwifs on 6/21/2024 in #❓┊help
Spatie Translatable package for Filament
Hi, I recent have installed the filament plugin for spatie translations. Only I kind of dislike the current way of working and I was wondering a couple of things, I could not find the a plugin docs. - Instead of a dropdown, can I have like a tab that changes between the configured languages - Can all the other languages inherit the original (for me en) text into the text boxes? So you can exactly see what you need to translate.
4 replies
DDeno
Created by Zwifs on 1/12/2024 in #help
Fresh - Page title to Layout
Hi, I have been browsing around the docs and also being new to JSX,I'm not sure what I look for. What I want todo is have a variable in the title tag of my _layout. So I can pass that var via the page.
10 replies
DDeno
Created by Zwifs on 1/11/2024 in #help
Using SCSS with Fresh
Hi, I'm starting to get into Fresh for building simple static websites. Right now I want to use my preferred tool, SASS(scss). Can I intergrate this directly with Fresh? Or do I need to do this separately?
8 replies
FFilament
Created by Zwifs on 9/23/2023 in #❓┊help
Fieldset / Grid to array/json
No description
7 replies
FFilament
Created by Zwifs on 9/15/2023 in #❓┊help
New instantly creates a new record
No description
5 replies
FFilament
Created by Zwifs on 8/29/2023 in #❓┊help
Infolist index page + dynamic modal form
Hello, I wonder if I can make a admin page as follows. - I want a infolist page as index, so showing the database records as cards with icon etc. - Use the modals (v2 simple modal) to create a new entry -- Make one select box that will render out the rest of the form depending on the selection
8 replies
FFilament
Created by Zwifs on 4/12/2023 in #❓┊help
Render form elements based on selection (dynamically)
Hi! I'm using the Form Builder standalone but I have a question regarding rendering. My Livewire component now has this:
// ...
<div class="modal-body">
{{ $this->form }}
</div>
// ...
// ...
<div class="modal-body">
{{ $this->form }}
</div>
// ...
My Form schema looks like this:
protected function getFormSchema(): array
{
return [
Select::make('key')
->label('Vault type')
->options(VaultService::getVaults())
->required(),

// value
];
}
protected function getFormSchema(): array
{
return [
Select::make('key')
->label('Vault type')
->options(VaultService::getVaults())
->required(),

// value
];
}
But based of the selected vault I want to load a form form the belonging vault class. That whole formset should become value as a array. Please let me know if you need more info
24 replies
FFilament
Created by Zwifs on 3/14/2023 in #❓┊help
Hidden value filled by other input
Hi! What would be the best way to have InputA in the form visible where the user can type something and have InputB hidden in the form that is populated by something from InputA. - InputA you fill in a Discord username - After typying is done you fetch the userid from the discord user - InputB (hidden in the form) will be populated with the discord userid - Create record. And InputB will be sent off as value for creating that record. What would be the right way to do so?
TextInput::make('player')->reactive()
->afterStateUpdated(function (Closure $set, $state) {
$set('uuid', $ID);
}),
TextInput::make('uuid')->hidden(),
TextInput::make('player')->reactive()
->afterStateUpdated(function (Closure $set, $state) {
$set('uuid', $ID);
}),
TextInput::make('uuid')->hidden(),
5 replies