TheRealTeeHill
TheRealTeeHill
FFilament
Created by TheRealTeeHill on 9/28/2024 in #❓┊help
Why does my filter icon not look right?
No description
6 replies
FFilament
Created by TheRealTeeHill on 8/20/2024 in #❓┊help
Pass URL parameter from Page to Widget
I have a page that calls a widget
<?php

namespace App\Filament\Pages;

use App\Filament\Resources\VesselLocationResource\Widgets\VesselLocationGoogleMapWidget;
use Filament\Pages\Page;
use Illuminate\Http\Request;

class VesselFinder extends Page
{
public $fleet;

protected static ?string $navigationIcon = 'icon-map';

protected static ?string $navigationGroup = 'Maritime Overview';

protected static ?int $navigationSort = 5;

protected static string $view = 'filament.pages.vessel-finder';

public function mount(Request $request)
{
$this->fleet = $request->query('fleet');
}

protected function getHeaderWidgets(): array
{
return [
VesselLocationGoogleMapWidget::class,
];
}

protected function getHeaderWidgetsData(): array
{
return [
'fleet' => $this->fleet,
];
}
}
<?php

namespace App\Filament\Pages;

use App\Filament\Resources\VesselLocationResource\Widgets\VesselLocationGoogleMapWidget;
use Filament\Pages\Page;
use Illuminate\Http\Request;

class VesselFinder extends Page
{
public $fleet;

protected static ?string $navigationIcon = 'icon-map';

protected static ?string $navigationGroup = 'Maritime Overview';

protected static ?int $navigationSort = 5;

protected static string $view = 'filament.pages.vessel-finder';

public function mount(Request $request)
{
$this->fleet = $request->query('fleet');
}

protected function getHeaderWidgets(): array
{
return [
VesselLocationGoogleMapWidget::class,
];
}

protected function getHeaderWidgetsData(): array
{
return [
'fleet' => $this->fleet,
];
}
}
I want to pass a variable via the URL to the widget so I can filter the widget data - http://mysite.com/admin/vessel-finder?fleet=north How can I collect "fleet" in the VesselLocationGoogleMapWidget? Cheers
3 replies
FFilament
Created by TheRealTeeHill on 8/6/2024 in #❓┊help
Table Widget: hide the title / header
No description
7 replies
FFilament
Created by TheRealTeeHill on 7/30/2024 in #❓┊help
Minor layout issue
No description
13 replies
FFilament
Created by TheRealTeeHill on 7/29/2024 in #❓┊help
Use Filament Shield to manage access to Table Actions
Hi, I did some research and some GPT prompts but found nothing useful so far... Is it possible to block / allow access to Table Actions using Filament Shield? Or will it be better to use ->visible() Cheers, Tee
21 replies
FFilament
Created by TheRealTeeHill on 7/26/2024 in #❓┊help
Filament Shield and Filament Socialite login/register issue
No description
4 replies
FFilament
Created by TheRealTeeHill on 7/25/2024 in #❓┊help
Socialite, Microsoft, allowed domains issue...
No description
2 replies
FFilament
Created by TheRealTeeHill on 5/30/2024 in #❓┊help
Long email address in tooltip breaking at the @
No description
14 replies
FFilament
Created by TheRealTeeHill on 5/18/2024 in #❓┊help
Database Notifications not saving in table
My database notification that I want to make at the end of a console command is not saving, any ideas?
use Filament\Notifications\Notification;

// ...

Notification::make()
->title("New calls: $newCalls")
->sendToDatabase(User::find(1));
use Filament\Notifications\Notification;

// ...

Notification::make()
->title("New calls: $newCalls")
->sendToDatabase(User::find(1));
3 replies
FFilament
Created by TheRealTeeHill on 5/15/2024 in #❓┊help
Sortable() on One-of-Many column not sorting properly
No description
6 replies