Robert Mann
Robert Mann
FFilament
Created by Robert Mann on 1/23/2024 in #❓┊help
Space in table between first text column and all the rest of the columns.
@Matthew you were spot on. I moved the resources/views/vendor folder out and ran npm run build and everything is back to normal. Thank you.
10 replies
FFilament
Created by Robert Mann on 1/23/2024 in #❓┊help
Space in table between first text column and all the rest of the columns.
That is a great place to start I appreciate it. I will report back.
10 replies
FFilament
Created by Robert Mann on 1/10/2024 in #❓┊help
I am using Laravel Scout with Meilisearch issue with Default Sortting
The following is a way to do it but renders the column sort orders useless if there is something in the search field. I have not put time in to figuring that part out yet but it might be possible to exclude the orderByRaw if there is a column sort order being used. But this works as expected and returns the order exactly how Meilisearch returns the results In the following License is the eloquent class and usi is the ID field sent to Meilisearch.
protected function applySearchToTableQuery(Builder $query): Builder
{
$this->applyColumnSearchesToTableQuery($query);

if (filled($search = $this->getTableSearch())) {
$query
->whereIn('usi', License::search($search)->keys())
->orderByRaw('FIELD(usi, ' . License::search($search)->keys()->join(',') . ') ASC');
}

return $query;
}
protected function applySearchToTableQuery(Builder $query): Builder
{
$this->applyColumnSearchesToTableQuery($query);

if (filled($search = $this->getTableSearch())) {
$query
->whereIn('usi', License::search($search)->keys())
->orderByRaw('FIELD(usi, ' . License::search($search)->keys()->join(',') . ') ASC');
}

return $query;
}
3 replies
FFilament
Created by Vinny on 8/14/2023 in #❓┊help
Table Builder + Scout: Search Result Order
@Patrick Boivin did you accomplish this with MySQL and if so would you mind sharing your new applySearchToTableQuery function so I don't have to reinvent the wheel?
11 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
So more or less have filament panel play nice with a public form using a different form layout then panel uses.
17 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
It may just be I need to go really figure out vite and it may have the ability to compile separate css files. That might be the part I am missing.
17 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
I do have the form stuff installed but the tailwind.config.js is configured for the panel stuff. I guess I am just confused on how to keep them seperate so I do not break panel stuff.
17 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
I have created a seperate blade file it is just the css that is confusing. @Lara Zeus I have looked through all the docs for filament and have not been able to find that but I will go over it again maybe I missed something. Thank you both. I figured it would be a new @vite(file) now I just have to figure out how that part works. Now that my suspicions appear to be correct I will hunt it down.
17 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
So I guess what I am trying to figure out is. When I include the @vite(resources/css/app.css') it formats the form specifically to the filament way. So if I keep that in a new layout which I do have for the public forms I would have to override a whole bunch of stuff to get it to work. So do you create a new app.forms.css file or how do you seperate out the css stuff is what I am trying to get at.
17 replies
FFilament
Created by Robert Mann on 12/2/2023 in #❓┊help
Public form theme or custom css?
When you do that do you simply exclude the @vite(resources/css/app.css') and if so will that break any other functionality?
17 replies