Stricks
Stricks
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
Passing data to a custom page that includes the Filament menu system
I've got it working. That page above was immensely helpful - thanks again!
13 replies
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
Passing data to a custom page that includes the Filament menu system
Thank you!
13 replies
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
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
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
Passing data to a custom page that includes the Filament menu system
Ah, sounds like I was overthinking it. Thanks! I'll go ahead and make the routes in web.php and take it from there.
13 replies
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
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
FFilament
Created by Stricks on 3/18/2025 in #❓┊help
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
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
No description
49 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
No description
49 replies
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.
49 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!
49 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
49 replies
FFilament
Created by Stricks on 10/18/2024 in #❓┊help
Can I use a filament table outside of Filament directories?
No description
49 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.
49 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 🙂
49 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. 🙂
49 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 ?
49 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'),
])
...
49 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!
49 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.
49 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>
49 replies