Stricks
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
Can I use a filament table outside of Filament directories?
Debugged this to the point where I found out it's missing file
/resources/views/components/layouts/app.blade.php
. I created a blank file, and now there is no error, but it's not loading anything else.49 replies
Can I use a filament table outside of Filament directories?
Also, I did not install LiveWire, as I assumed that it was included with Filament. Should I try and install it?
UPDATE: I just installed it, and it doesn't seem to make a difference, but I'm still testing. I also ran
php artisan livewire:publish --config
49 replies
Can I use a filament table outside of Filament directories?
Thanks for the tip. That code has a lot of doodling, so I decided to start a new, clean project. I installed Laravel , Filament. and laravel-ignition for debugging. The code is here: https://github.com/dstrickler/ReportWriter
I created a LiveWire compoment and configured it exactly like the docs said, swapping the
The old error has disappeared in this new project. Now, when I call the Livewire directly with
Product
model for my Family
model. I couldn't get the LiveWre working with the Route (see below), so I tried creating a Controller that referenced the Blade the LiveWire uses and built a Route to the Controller, but that didn't work either.The old error has disappeared in this new project. Now, when I call the Livewire directly with
Route::get('/report', \App\Livewire\Report::class);
in my web.php
file, I get a 500 error from the browser.
Should the route command directly call the LiveWire file shown above? Or should it call a Controller that just displays the View, which has the @LiveWire()
command in it (I've tried both)? The documentation is unclear.
As a hint, the error, which doesn't show in the logs, is inside of the blade file. Removing the @LiveWire('report)
line removes the 500 error, but obviously doesn't display the table.
TIA for your help. I feel I'm missing something very basic in concept, as this code new project is so simple.49 replies
Can I use a filament table outside of Filament directories?
https://github.com/dstrickler/nhadbv2-filament
I put the app/http/controller/reportwriter code back in there as it didn't make a difference removing it (I suppose I could have stashed it).
But the repo should have everything in it. TIA for the help!
49 replies