Patricio
Patricio
Explore posts from servers
FFilament
Created by Patricio on 8/15/2024 in #❓┊help
Delete a Record intentionally with relationships
Hey everyone. So, I want to manually take care of a record deletion. There's a few relationships involved, and I want to use DB::transactions. I know I could use an Observer, but that's not explicit and I believe it won't use transactions. My only issue is that after deleting the record, it doesn't navigate away. It seems it tries to reload the page before redirecting, and of course, the model is already gone by that time, and I get a 404, instead of a redirect. Here is the code I'm using on a custom action (tried to customize a DeleteAction before, but similar result. Thanks for any tips!
Actions\Action::make('delete_with_sections')->requiresConfirmation()
// not working
->successRedirectUrl(PageResource::getUrl())
->action(function (Action $action) {

DeletePage::handle($this->getRecord());

// not working
$this->redirect(PageResource::getUrl());
}),
Actions\Action::make('delete_with_sections')->requiresConfirmation()
// not working
->successRedirectUrl(PageResource::getUrl())
->action(function (Action $action) {

DeletePage::handle($this->getRecord());

// not working
$this->redirect(PageResource::getUrl());
}),
7 replies
FFilament
Created by Patricio on 2/24/2024 in #❓┊help
Package development with UI
Hey everyone. Is there any standard and/or automated way, to run a webapp within the package repository? I was expecting some like this:
# First, task: Use package skeleton template to create repo

# Previous task done, I run this, and initial config gets done, great!
php ./configure.php

# Now I would like to visit the UI, without setup a new project somewhere on my disk, config "composer repo path", etc
# I'm imagining here! I would like to run something like
php ./setup-wrapper-app.php
cd wrapper-app
php artisan serve
# First, task: Use package skeleton template to create repo

# Previous task done, I run this, and initial config gets done, great!
php ./configure.php

# Now I would like to visit the UI, without setup a new project somewhere on my disk, config "composer repo path", etc
# I'm imagining here! I would like to run something like
php ./setup-wrapper-app.php
cd wrapper-app
php artisan serve
Best I can think of is going through the Orchestra-Dusk path, since probably it will have a running instance. Is there a better way? Thanks
1 replies
FFilament
Created by Patricio on 1/4/2024 in #❓┊help
Spatie Media Library outside a Resource
No description
10 replies
FFilament
Created by Patricio on 10/4/2023 in #❓┊help
Contributing
Hey everyone. Where's "contributing" docs or instructions? Already searched but couldn't find it.
3 replies
RRailway
Created by Patricio on 9/29/2023 in #✋|help
Docker Image from Private Registry
Hello everyone. I'm trying to deploy an image from GHCR (private image), and I can't seem to find a way to authorise it?? Isn't it possible?
24 replies