F
Filament11mo ago
HL

->recordUrl global setting not working

For some reason, if I use ->recordUrl(false) in the AdminPanelProvider, it doesn't work, but it works separately in the Resource.
return $panel
->bootUsing(function () {
Table::configureUsing(function (Table $table): void {
$table
->recordUrl(false)
->striped();
});
})
return $panel
->bootUsing(function () {
Table::configureUsing(function (Table $table): void {
$table
->recordUrl(false)
->striped();
});
})
All my columns are striped so that part is working, and again ->recordUrl(false) works if I put it in the resource's table function, so I'm not sure what I'm missing.
6 Replies
HL
HL11mo ago
Doesn't work with
->recordUrl('https://google.com')
->recordUrl('https://google.com')
either Anyone can help me with this? Doesn't work with either of these:
->recordUrl(null)
->recordUrl(false)
->recordAction(null)
->recordAction(false)
->recordUrl(null)
->recordUrl(false)
->recordAction(null)
->recordAction(false)
awcodes
awcodes11mo ago
Can you try it in a regular boot on a normal service provider. BootUsing maybe too early for configure.
HL
HL11mo ago
class AppServiceProvider extends ServiceProvider
{
...
public function boot()
{
...

Table::configureUsing(function (Table $table): void {
$table
->recordUrl(false)
->striped();
});
}
}
class AppServiceProvider extends ServiceProvider
{
...
public function boot()
{
...

Table::configureUsing(function (Table $table): void {
$table
->recordUrl(false)
->striped();
});
}
}
Again, tables are striped but still clickable bump
awcodes
awcodes11mo ago
i'm thinking this might be a bug. i'm getting the same results
harps
harps10mo ago
I have the same issue with a table inside a resource, I'm just trying to turn off clickable rows.
HL
HL10mo ago
It's still not fixed, better of just adding this to every resource, relation manager and table widget for now
Want results from more Discord servers?
Add your server
More Posts