Stricks
Passing data to a custom page that includes the Filament menu system
@toeknee I'm still struggling with this. Do you know of a simple example of the code I need to make this (Page with business logic and View) work? I'm one of those learners that need to see the code to understand it.
TIA
13 replies
Passing data to a custom page that includes the Filament menu system
Gotcha - so I'm on the right track - that's great!
So my question is, I've built the custom page, but it doesn't get created with functions. In the Laravel Resources I'm used to using, there's an
edit()
and a save()
, etc, and I know what they all do. Their names are special so that they hook into things like display a page, and accepting a POST from a Form.
In a Filament custom page, what do I name the functions? I've tried index()
and that doesn't seem to work, so I would guess there are special names for the functions. I would also assume there is one that when I call the URL the function is auto-loaded, and then I can call the Blade from the function.
Any clues as to how what these functions names would be or how they would work? I don't see that in the docs.13 replies
Passing data to a custom page that includes the Filament menu system
I think so - thanks 😉
However, I think I may be going about this the wrong way. Since I have built 80% of my application using Filament (love it!), I would like to do this "the Filament way".
So I'll reframe the question: If I need to build some classic Laravel Resource/Blade code, what's the best way for me to make it appear in the Filament menu so the user sees it as a single application?
If it helps, I have already experimented with a Controller/Resource that works well along side Filament, but I can't figure out how to add the URL for the pages into the Filament menu so the page looks like it belongs to the main app. But maybe this is the wrong approach?
Any guadance is appreciated.
13 replies
Can I use a filament table outside of Filament directories?
Solved: Ugh! When I created this new project for debugging this, I changed the config/database.php, but the /env.php file's database settings overriding it. Thus my "No families" error truly meant it couldn't find the table
Families
.
Thanks for the help everyone!49 replies
Can I use a filament table outside of Filament directories?
I think I found the "docs" I was looking for: https://livewire.laravel.com/screencast/getting_started/installation
When I looked at them, these videos were broken (wouldn't play), so I moved on to the written docs. While the guy talks fast, he explains things really well, and they're easy to follow. I'll watch the course.
Also note the giant "X" in my question above seems to be not rendering Tailwind in the view. My code still complains that
Family
isn't a valid table, but it also contains roughly the same way as User
. When I figure that out and post it back here.49 replies
Can I use a filament table outside of Filament directories?
Ok. I’ll look for full step-by-step instructions in the morning.
Once I get this working and start to understand this, I’m going to talk to the filament people about getting a beginners guide going. Their beginners guide is way too advanced if you’ve never done this stuff before. 🙂
49 replies
Can I use a filament table outside of Filament directories?
@awcodes regarding your reference to a "full page component", I've found it on https://livewire.laravel.com/docs/components#full-page-components but it looks even more complex. I'm trying to get this as simple as possible so I can grasp it, and move up to more complex setups.
Would it be possible to use the examples on https://livewire.laravel.com/docs/quickstart ?
49 replies
Can I use a filament table outside of Filament directories?
@awcodes The base html layout helped a lot - thanks.
No crashing errors now, but I'm seeing a giant (and I don't use that term lightly) black "X" on the screen, and "No families" in normal size print on the bottom left. I assume the "families" reference is to my table
families
and my model 'family' in this code in the Livewire component.
Any clues on what's causing the "X"?
49 replies