Stricks
Stricks
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Thanks @Dennis Koch - that explains what I'm seeing. I'll make sure do that.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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!
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
I'm not sure why, but running this command solves the missing Tailwind, but it did. npm run build
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
No description
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Yup, and it should. I jumped in too quick and it shows 🙂
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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. 🙂
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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 ?
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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"?
class Report extends Component implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;

public function table(Table $table): Table
{
return $table
->query(Family::query())
->columns([
TextColumn::make('name'),
])
...
class Report extends Component implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithForms;

public function table(Table $table): Table
{
return $table
->query(Family::query())
->columns([
TextColumn::make('name'),
])
...
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Ah, I didn't realize it needed more for testing. Thanks for the tip!
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
@Dennis Koch Thanks for helping me. If it helps, this is my blade fiile. Very simple.
<!-- livewire('report') -->

<?PHP
// For debugging only
if (isset($this) == FALSE) {
echo "\$this value is undefined in the Blade";
exit();
}
?>

<div>
You are in the report.blade file.
{{ $this->table }}
</div>
<!-- livewire('report') -->

<?PHP
// For debugging only
if (isset($this) == FALSE) {
echo "\$this value is undefined in the Blade";
exit();
}
?>

<div>
You are in the report.blade file.
{{ $this->table }}
</div>
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
No description
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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 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.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
If it matters, this is on a Mac, running the latest version of Herd Pro as the backend.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Oh, and the liveware compoment is called TestTableDWS.php now, just to make it unique.
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
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!
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Thanks - give me 3 min
46 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
Understood. I will make the repo public again if that helps.
46 replies