Magooh
Magooh
FFilament
Created by Magooh on 8/14/2023 in #❓┊help
Searchable table with nested values
For others running into the same problem:
// ListOrders.php

protected function applySearchToTableQuery(Builder $query): Builder
{
if (filled($searchQuery = $this->getTableSearchQuery())) {
return $query->whereHas('orderLines', function (Builder $query) use ($searchQuery) {
$query->where('type', '=', $searchQuery);
});
}

return $query;
}
// ListOrders.php

protected function applySearchToTableQuery(Builder $query): Builder
{
if (filled($searchQuery = $this->getTableSearchQuery())) {
return $query->whereHas('orderLines', function (Builder $query) use ($searchQuery) {
$query->where('type', '=', $searchQuery);
});
}

return $query;
}
Will mark as done!
10 replies
FFilament
Created by Magooh on 8/14/2023 in #❓┊help
Searchable table with nested values
This looks like what I am looking for. Thanks. Will explore further
10 replies
FFilament
Created by Magooh on 8/14/2023 in #❓┊help
Searchable table with nested values
V2! Sorry, should've inlcuded that
10 replies
FFilament
Created by Magooh on 8/14/2023 in #❓┊help
Searchable table with nested values
If I could extend the search query and write a custom query that'd totally work for me as well. Tried to use the public static function getEloquentQuery for this but that doesn't have access to the search query
10 replies
FFilament
Created by Magooh on 6/19/2023 in #❓┊help
Pdf file upload doesn't save path in database, image does
APznzaZVZmdRSnvodJptCwMsH7LYi3C91fSDX0i6PyNC-ComLcOHKa847B4v6Tk6UppzcmeIlryvctrG0xJD5b6uYUvp_hpe33j8W-XWJQs5ru01py3jlNXFxd8E2ZFfBL0WVriuquC7J_zaLxbiCblA50apOaoTOR3D3MA8PNS1x7ckbtlBWG61MuiLKBsq5ksJlubcMQi7cMmDK_VqYyvh89lVZFJqMM_G-LTJ6C9hdagE.pdf
APznzaZVZmdRSnvodJptCwMsH7LYi3C91fSDX0i6PyNC-ComLcOHKa847B4v6Tk6UppzcmeIlryvctrG0xJD5b6uYUvp_hpe33j8W-XWJQs5ru01py3jlNXFxd8E2ZFfBL0WVriuquC7J_zaLxbiCblA50apOaoTOR3D3MA8PNS1x7ckbtlBWG61MuiLKBsq5ksJlubcMQi7cMmDK_VqYyvh89lVZFJqMM_G-LTJ6C9hdagE.pdf
= 244 chars long
7 replies
FFilament
Created by Magooh on 6/19/2023 in #❓┊help
Pdf file upload doesn't save path in database, image does
Looks like it's because of a long file name
7 replies
FFilament
Created by Magooh on 6/19/2023 in #❓┊help
Pdf file upload doesn't save path in database, image does
It looks like there's something wrong with the pdf. Trying a different pdf file works like expected
7 replies
FFilament
Created by Magooh on 6/19/2023 in #❓┊help
Pdf file upload doesn't save path in database, image does
7 replies