WEBMAS
WEBMAS
FFilament
Created by WEBMAS on 11/13/2024 in #❓┊help
Selecting and uploading a file via a modal window (file browser)
Which of these will suit me? I don't see the file field with the choice of file among those uploaded to the server via a modal window.
6 replies
FFilament
Created by WEBMAS on 9/27/2024 in #❓┊help
Prefetch 503 Service Unavailable (from prefetch cache)
No description
11 replies
FFilament
Created by WEBMAS on 9/27/2024 in #❓┊help
Prefetch 503 Service Unavailable (from prefetch cache)
No description
11 replies
FFilament
Created by WEBMAS on 9/27/2024 in #❓┊help
Prefetch 503 Service Unavailable (from prefetch cache)
No. It's dangerous for us. Is it possible to disable it only for a specific URL?
11 replies
FFilament
Created by WEBMAS on 9/27/2024 in #❓┊help
Prefetch 503 Service Unavailable (from prefetch cache)
No description
11 replies
FFilament
Created by WEBMAS on 8/14/2024 in #❓┊help
How to sort the order of resources in the global search result?
Search results are grouped by resources. How can I change the order of resource groups?
3 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
What needs to be done for this?
18 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
Yeah. The problem is common. But, people don't talk about sorting. Is it hard to add the option ->updateOnlyAfterSave() instead of every time you drag a row. That would solve the problem for me. (((
18 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
I don't understand this. I use FIlament and its standard components. Why should I worry about performance if FIlament didn't think about it initially. It's trivial to not update the table every time I drag a row, but to update it only when I click the Save button to exit the sorting mode. I don't understand why there is no such option. This is very strange. I want to set the positions first and only then save them. Why save them and update them after each dragging of the position.
18 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
When I enable reorderable to sort in the desired order, all 2000 records are displayed on the page. Each time I drag and drop, the render code is sent to the server and the same full render code with 2000 HTML table rows is returned. This HTML code weighs 20 MB. I don't understand why I don't just get the list of positions and send new positions. Why get the entire HTML code of the page again when I drag 1 element. Is it possible to make the sorting apply when I click the "Save" button and not every time I drag and drop an element?
18 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
No. It's not the model that takes up space, it's the render that takes up space. What's loaded in SPA mode.
18 replies
FFilament
Created by WEBMAS on 8/11/2024 in #❓┊help
Reorderable is very slow (10+sec). How to speed it up?
Has anyone solved a similar problem?(
18 replies
FFilament
Created by WEBMAS on 8/2/2024 in #❓┊help
How to make my custom Prebuilt Actions?
My solution. I don't know how reliable it is, but it works. app/Filament/Actions/WatchAction.php
<?php

namespace App\Filament\Actions;

use Filament\Actions\Action as BasePageAction;
use Filament\Tables\Actions\Action as BaseTableAction;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Livewire\Livewire;

class WatchAction
{
public static function make(?string $name = null)
{
if (Str::contains(Route::currentRouteName(), '.index') || Str::contains(Livewire::current()->getName(), '.list-')) {
return WatchTableAction::make($name);
} else {
return WatchPageAction::make($name);
}
}
}

class WatchPageAction extends BasePageAction
{
use HasWatchActionAttributes;
}

class WatchTableAction extends BaseTableAction
{
use HasWatchActionAttributes;
}

trait HasWatchActionAttributes
{
...
}
<?php

namespace App\Filament\Actions;

use Filament\Actions\Action as BasePageAction;
use Filament\Tables\Actions\Action as BaseTableAction;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Livewire\Livewire;

class WatchAction
{
public static function make(?string $name = null)
{
if (Str::contains(Route::currentRouteName(), '.index') || Str::contains(Livewire::current()->getName(), '.list-')) {
return WatchTableAction::make($name);
} else {
return WatchPageAction::make($name);
}
}
}

class WatchPageAction extends BasePageAction
{
use HasWatchActionAttributes;
}

class WatchTableAction extends BaseTableAction
{
use HasWatchActionAttributes;
}

trait HasWatchActionAttributes
{
...
}
11 replies
FFilament
Created by WEBMAS on 8/2/2024 in #❓┊help
How to make my custom Prebuilt Actions?
Can't find "one Action" in discord topics(((
11 replies
FFilament
Created by WEBMAS on 8/2/2024 in #❓┊help
How to make my custom Prebuilt Actions?
How to make a universal Action? So that it is suitable for both tables and pages. If I use Action from tables in pages, then there will be an error "Header actions must be an instance of Filament\Actions\Action, or Filament\Actions\ActionGroup". Is it possible to make a universal one?
11 replies
FFilament
Created by WEBMAS on 8/2/2024 in #❓┊help
How to make my custom Prebuilt Actions?
Thanks. I thought about this solution, but I didn't know exactly where to put the file. So the optimal location is app/Filament/Actions?
11 replies
FFilament
Created by WEBMAS on 7/23/2024 in #❓┊help
How to add analytics counters (Google, Yandex, LiveInternet)?
I thought about it, but will there be problems due to SPA? I thought there was a special mechanism for this. Okay, I'll try it using hooks.
5 replies
FFilament
Created by WEBMAS on 7/9/2024 in #❓┊help
How to make optional not only a parameter but also a separator in Route::get()?
The solution to split one route into different routes works. This is what I did in my project. But I want to combine them into one route. I've read a lot of documentation and it doesn't seem possible to do this. This was possible to do in Lumen, because it used a different engine for processing routes.
5 replies
FFilament
Created by WEBMAS on 7/9/2024 in #❓┊help
How to make optional not only a parameter but also a separator in Route::get()?
Is this possible to do or not?
5 replies
FFilament
Created by WEBMAS on 7/6/2024 in #❓┊help
How to manage only your records (user_id)?
I decided to use global scopes because it would make the selection easier for those who don't need to see all the records. For example, if I display posts in Select, etc. If you do not use global scopes, then you will have to make a condition and a selection in each place where user_id=... (resources, fields and etc)
30 replies