Hugo
Hugo
FFilament
Created by TheRealTeeHill on 5/30/2024 in #❓┊help
Long email address in tooltip breaking at the @
Hi, is this solution still working? I'm at the moment trying to use it to list data in a tooltip and it isn't showing any tooltip.
12 replies
FFilament
Created by Hugo on 6/6/2024 in #❓┊help
Import / Export Session expired & logout - Export with random table info.
Any updates?
4 replies
FFilament
Created by Hugo on 6/6/2024 in #❓┊help
Import / Export Session expired & logout - Export with random table info.
I've tested it on a table with 18 records and 4/5 times it logs me out. The loading animation takes a little longer and then it just logs me out. The one time it worked fine.
4 replies
FFilament
Created by christmex on 3/14/2024 in #❓┊help
Import and Export bug, keep showing 419 expired
This saved me the problem of constantly showing me that the page has expired but it still logs me out of the app. Any way to solve this?
8 replies
FFilament
Created by Hugo on 5/11/2024 in #❓┊help
Dynamic columns on Importer class
Sorry for the very delayed answer. I ended up making my own classes, adapting some of filament's in order to access the options array wherever I want.
10 replies
FFilament
Created by Hugo on 5/11/2024 in #❓┊help
Dynamic columns on Importer class
ok, thank you. I'll do my best to make it work somehow.
10 replies
FFilament
Created by Hugo on 5/11/2024 in #❓┊help
Dynamic columns on Importer class
Will it help me create the dynamic ImportColumns and show them on the modal that pops up upon importing a file?
10 replies
FFilament
Created by Sydd on 4/19/2024 in #❓┊help
canView widget
what I got from testing is that canView() is the first thing to be checked as soon as the page tries to show the widget. I've tried to dd on the render and even on the mount and they are only called after the canView() method. This is my thought process, idk if its really like that but it would never go inside the render or mount method before the canView().
14 replies
FFilament
Created by Sydd on 4/19/2024 in #❓┊help
canView widget
it says its not an object therefore can't use $this
14 replies
FFilament
Created by Sydd on 4/19/2024 in #❓┊help
canView widget
Hey, it might have nothign related to this but, is there a way I can hide the widget if it has no data? It just shows a blank rectangle when there is no data to show on the chart widget. I tried to do this with canView method and it works when im not doing a query to a specific $record but when my chart has a record, I can't access the $this->record inside the canView method since it says it's not an object. Is there a way to just hide the widget when there's no data to show?
14 replies
FFilament
Created by Hugo on 4/12/2024 in #❓┊help
Send variables to the Exporter
Thank you, it worked. Since there was no info on the Export Action docs, I thought it wasn't possible.
8 replies
FFilament
Created by Hugo on 4/12/2024 in #❓┊help
Send variables to the Exporter
Couldn't find it. Could you link me the docs? Sorry for the delayed response.
8 replies
FFilament
Created by Hugo on 4/12/2024 in #❓┊help
Send variables to the Exporter
Can i access it inside the Exporter tho?
8 replies
FFilament
Created by Hugo on 4/3/2024 in #❓┊help
sticky table header
what im missing at the moment is the horizontal scroll on the table with the sticky header as it is with that css i've provided. Im not specialist in CSS, so if anyone has a good suggestion to how I can achieve that behavior i'd be glad. Thank you.
6 replies
FFilament
Created by Hugo on 4/3/2024 in #❓┊help
sticky table header
Hello, Im actually also using awcodes's sticky header but that is not what im looking for. I've come quite close to achieving what I want with the following css
.fi-ta-table thead {
position: sticky !important;
top: 10.11rem;
z-index: 50;
}
/* opacity does not looks good in dark mode, so insert the corresponding bg color here */
.fi-ta-table thead:is(:where(.dark) .dark\:bg-white\/5){
background-color: rgb(36 36 39);
}

.fi-ta-content{
overflow: unset!important;
}

.fi-ta-ctn{
overflow: unset!important;
}
.fi-layout {
overflow: unset!important;
}
.fi-ta-table thead {
position: sticky !important;
top: 10.11rem;
z-index: 50;
}
/* opacity does not looks good in dark mode, so insert the corresponding bg color here */
.fi-ta-table thead:is(:where(.dark) .dark\:bg-white\/5){
background-color: rgb(36 36 39);
}

.fi-ta-content{
overflow: unset!important;
}

.fi-ta-ctn{
overflow: unset!important;
}
.fi-layout {
overflow: unset!important;
}
The problem im facing now with unsetting the overflow from the .fi-layout is that the extra columns are showing outside the table. With the default .fi-layout, horizontal scroll is not possible.
6 replies
FFilament
Created by Hugo on 3/15/2024 in #❓┊help
Theme doesn't apply on dashboard page
Solved this issue aswell. For anyone that goes through the same, in order to manage where to redirect the user after login, I had a customFilamentLogin class set on
->login(CustomFilamentLogin::class)
->login(CustomFilamentLogin::class)
. In this class I overwrote the authenticate method to update the last_login_at column and I also then created a CustomLoginResponse:class extending filament's LoginResponse and I overwrote the toResponse method and just managed where the user should be redirected to
public function toResponse($request): RedirectResponse | Redirector
{
$user = auth()->user();
if ($user && $user->last_login_at === null) {
return redirect("admin/profile");
}

return redirect()->intended(Filament::getUrl());
}
public function toResponse($request): RedirectResponse | Redirector
{
$user = auth()->user();
if ($user && $user->last_login_at === null) {
return redirect("admin/profile");
}

return redirect()->intended(Filament::getUrl());
}
11 replies
FFilament
Created by Hugo on 3/15/2024 in #❓┊help
Theme doesn't apply on dashboard page
Using
->name(Dashboard::getRouteName())
->name(Dashboard::getRouteName())
has the same result
11 replies
FFilament
Created by Hugo on 3/15/2024 in #❓┊help
Theme doesn't apply on dashboard page
Found the issue. I was redirecting users on their first login ever to the profile page and the ones that had login before to the dashboard page. This was applying the default filament styles. This fixes the issue I had with filament styles but now I don't have an asnwer for the solution I implemented for users to be redirected because using the route
->name('filament.admin.pages.dashboard')
->name('filament.admin.pages.dashboard')
will just apply the filament's default styles. This is what was causing the issue.
// Route::get('/admin', function () {
// $user = auth()->user();
// if ($user && $user->last_login_at === null) {
// return redirect("admin/profile");
// }

// return app(Dashboard::class)();
// })->name('filament.admin.pages.dashboard');
// Route::get('/admin', function () {
// $user = auth()->user();
// if ($user && $user->last_login_at === null) {
// return redirect("admin/profile");
// }

// return app(Dashboard::class)();
// })->name('filament.admin.pages.dashboard');
If anyone has any clue how can i still make this route work without having to change the styles, ill glady appreaciate.
11 replies
FFilament
Created by Hugo on 3/15/2024 in #❓┊help
Theme doesn't apply on dashboard page
Indeed, I have no clue why this happened all of a sudden.
11 replies
FFilament
Created by Hugo on 3/15/2024 in #❓┊help
Theme doesn't apply on dashboard page
It is only happening when im in the Dashboard, in any other page or resource it applies the primary color that was set. In the dashboard it defaults to using filament's default primary color.
11 replies