Randak
Randak
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
So many hours.... hahahaha I really appreciate your help. I've done business coaching and consulting for 40 years so if you need any business help I'm at your service! (this applies to you as well @toeknee )
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
It happens when I click on the button. Maybe I messed something up earlier in the process. I wonder if that view is delectable (without breaking something else)?
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
This error (which I've gotten frequently during this process): foreach() argument must be of type array|object, string given GET localhost PHP 8.3.9 — Laravel 11.16.0 Expand vendor frames 24 vendor frames collapsed storage/framework/views/4943bc92ebba41e8b0e508149542e0ad.blade.php :16 require 62 vendor frames collapsed public/index.php :17 require_once 1 vendor frame collapsed storage/framework/views/4943bc92ebba41e8b0e508149542e0ad.blade.php :16 $env->slot($name, attributes: $slot->attributes->getAttributes()); echo $slot->toHtml(); $env->endSlot(); } ?> @endcomponent
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
Just set public, here is the link: https://github.com/House-Chaos-Games/ChaosEmpire
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
I have it pushed to gitub, including seeders.
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
I may have messed up a fundamental some where. That is where it may be beneficial to have someone look at my code. I've tried so many ways who knows what damage I've done! 🙂
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
/admin/nebula-instances
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
Yes. Do I need to set up separate directories?
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
I'm not sure what that means. I do have the discoverPages and Resources set up. The target is a new page (a new dashboard I believe, even though I'm using the default dashboard). Basically I envision it as a new "admin" panel. The general one for the user. Then another panel with all the information for a specific instance for the game. Sorry if my knowledge level makes this more difficult--Filament is wonderful but I'm still learning to code and use it.
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
\App\Filament\Resources\NebulaIstanceResource
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
The User is on their /admin page, which shows the NebulaInstances they are involved in. When they click on a NebulaInstance (action button), it should take them to a new panel (in this context the Game panel). The Game panel will have all the resources for that specific game/instance (key people, ships, etc.). That is why I need to bring over the NebulaInstance reference as well, so they only see the relevant records for that Instance.
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
Still not working (including variations). I'm more suspicious that I've broken something somewhere or have a fundamental logic and or understanding flaw. I'd be open to a recommendation for reasonably priced paid help.
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
I tried to chain it in the action but it didn't work.
Action::make('viewGame')
->label('Enter Game')
->icon('heroicon-o-play')
->NebulaInstanceResource::getURL(panel:'game')
Action::make('viewGame')
->label('Enter Game')
->icon('heroicon-o-play')
->NebulaInstanceResource::getURL(panel:'game')
It gives this error: Property 'NebulaInstanceResource' not found in \Filament\Tables\Actions\Action I've tried it a few other ways and places, but same issue. I'm wondering if I broke something fundamental somewhere else.
33 replies
FFilament
Created by Randak on 2/17/2025 in #❓┊help
Action to redirect from one panel to another
Thanks for the help. I'll test it out ASAP.
33 replies
FFilament
Created by Randak on 1/7/2025 in #❓┊help
Dropdown with more than 50 records
Working code:
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect()
->optionsLimit(100),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect()
->optionsLimit(100),
Forms\Components\TextInput::make('fame_points')
->required()
->integer(),
]),
])
5 replies
FFilament
Created by Randak on 1/7/2025 in #❓┊help
Dropdown with more than 50 records
Thank you so much for your help Julien, I really appreciate it. I had tried that (among many other things) after the 'preloadRecordSelect()' but it didn't recognize it and caused an error. Based on your tip, I tried it after the '$action->getRecordSelect()' and it worked. Have a great day!
5 replies
FFilament
Created by ironclaw8986 on 6/11/2024 in #❓┊help
Select is not working for a BelongsToMany relationship in RelationManager
Good luck!
7 replies
FFilament
Created by Randak on 6/9/2024 in #❓┊help
Editing a many-to-many attachment with pivot attributes.
I solved the problem by removing the "shield_id" select statement.
6 replies
FFilament
Created by ironclaw8986 on 6/11/2024 in #❓┊help
Select is not working for a BelongsToMany relationship in RelationManager
Correct. I'm not sure if you're having exactly the same problem (and I'm new at all this), but removing the select statement fixed the problem for me.
7 replies
FFilament
Created by ironclaw8986 on 6/11/2024 in #❓┊help
Select is not working for a BelongsToMany relationship in RelationManager
I had a similar problem that was just solved (in my case I couldn't edit the item without getting that error). It was fixed by removing the "select" statement in the RelationManager.
7 replies