ConnorHowell
ConnorHowell
FFilament
Created by BlackShadow on 8/9/2024 in #❓┊help
Custom register page (register link on login page)
You would be left with just the word "Or" unless you changed the translation lol
13 replies
FFilament
Created by BlackShadow on 8/9/2024 in #❓┊help
Custom register page (register link on login page)
It's extremely hacky but you could override the register action on a custom Login class to be hidden
13 replies
FFilament
Created by Sector on 8/6/2024 in #❓┊help
Multiple resource
Just to add, if it's a singular relationship (HasOne, BelongsTo, MorphOne) you can pass ->relationship() to the Fieldset form component and fields within it would be saved to the relationship. Otherwise yeah a repeater is what you're after
6 replies
FFilament
Created by SuperUserDo on 8/5/2024 in #❓┊help
Toggle Column Dynamic Label
As far as I'm aware there's also nowhere to hook in, could potentially be a PR to add offLabel and onLabel although I don't think it would be merged until v4 is released
7 replies
FFilament
Created by SuperUserDo on 8/5/2024 in #❓┊help
Toggle Column Dynamic Label
Ah I see that makes more sense! I'm pretty sure the toggle column (and the form component) doesn't actually have a label anyway?
7 replies
FFilament
Created by SuperUserDo on 8/5/2024 in #❓┊help
Toggle Column Dynamic Label
Column labels can't be dynamic based on the value of individual rows because the heading is above all rows?
7 replies
FFilament
Created by atabegruslan on 8/5/2024 in #❓┊help
How to make a URL column?
The url method accepts a callback so you can just access the record object to get any property from the model, something like this (obviously no idea what your column setup is)
Tables\Columns\TextColumn::make('url_display_text')
->url(fn ($record) => $record->url),
Tables\Columns\TextColumn::make('url_display_text')
->url(fn ($record) => $record->url),
6 replies
FFilament
Created by atabegruslan on 8/5/2024 in #❓┊help
How to make a URL column?
You can use the ->url() method available on TextColumn to give it the url https://filamentphp.com/docs/3.x/tables/columns/getting-started#opening-urls
6 replies
FFilament
Created by jjo63 on 7/29/2024 in #❓┊help
Generic process for installing plugins?
Usually in snippets that use an imported class they'd stick the "use" line above the snippet but I think most assume that people are using IDEs that would automatically flag this and prompt the import
6 replies
FFilament
Created by jjo63 on 7/29/2024 in #❓┊help
Generic process for installing plugins?
You need to import the class otherwise PHP just assumes it's in the same namespace as the current file. You'll need to add the following to the above the panel provider class:
use SolutionForest\FilamentSimpleLightBox\SimpleLightBoxPlugin;
use SolutionForest\FilamentSimpleLightBox\SimpleLightBoxPlugin;
6 replies
FFilament
Created by Jordy on 6/12/2024 in #❓┊help
Issue with Summary Range formatting
In hindsight that makes a lot of sense considering $state was an array to begin with lol
25 replies
FFilament
Created by Jordy on 6/12/2024 in #❓┊help
Issue with Summary Range formatting
Yeah ignore that I was being stupid
25 replies
FFilament
Created by Jordy on 6/12/2024 in #❓┊help
Issue with Summary Range formatting
Try ->numeric(false) on the summarizer?
25 replies
FFilament
Created by soogo on 6/7/2024 in #❓┊help
A calculated column in the table
You should either use the sortable method to customise the way it performs the query, or you should consider using a virtual column on the table https://filamentphp.com/docs/3.x/tables/columns/getting-started#sorting
3 replies
FFilament
Created by Sujal Tamrakar on 4/28/2024 in #❓┊help
Uploading new image to a prefilled spatie media file upload not working in custom page with forms
Could you share the code you're using for the form? It sounds like it's not setup to allow multiple files? https://filamentphp.com/docs/3.x/forms/fields/file-upload#uploading-multiple-files
3 replies
FFilament
Created by malivodka on 4/29/2024 in #❓┊help
How to hide drop down on menus?
Although it seems like you're not really using multi tenancy correctly if you're needing to hide that dropdown?
4 replies
FFilament
Created by malivodka on 4/29/2024 in #❓┊help
How to hide drop down on menus?
4 replies
FFilament
Created by Alnuaimi on 4/29/2024 in #❓┊help
How to add code into main Head in all pages in Filamentphp?
There's 2 ways, you can either register a javascript file on the panel: https://filamentphp.com/docs/3.x/panels/configuration#registering-assets-for-a-panel Or you can register a render hook https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks, you'd want PanelsRenderHook::HEAD_END or PanelsRenderHook::HEAD_START
3 replies
FFilament
Created by Saifulapm on 4/19/2024 in #❓┊help
Using a custom user model in Export action
Yes you'll want to put that in the register() method of a service provider, AppServiceProvider would be a suitable place.
7 replies
FFilament
Created by Imane Ouahmane on 4/18/2024 in #❓┊help
Login and registration API
Take a look at the base classes to understand what is happening with the standard pages
8 replies