WEBMAS
WEBMAS
FFilament
Created by WEBMAS on 12/15/2024 in #❓┊help
How to upload a file via a subdomain?
This won't help. One of two solutions is needed: 1. Upload to the server in chunks 2. Create a subdomain without Cloudflare proxy to upload the file The first option cannot be done now. How to implement the second option?
9 replies
FFilament
Created by WEBMAS on 12/15/2024 in #❓┊help
How to upload a file via a subdomain?
😦
9 replies
FFilament
Created by WEBMAS on 12/15/2024 in #❓┊help
How to upload a file via a subdomain?
If I use, for example, S3, then the file will be uploaded through my server, which means through my domain. Then this does not solve the problem. Or will it be uploaded to S3 not through the backend, but directly from the client?
9 replies
FFilament
Created by WEBMAS on 12/15/2024 in #❓┊help
How to upload a file via a subdomain?
Help me please
9 replies
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?
19 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. (((
19 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.
19 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?
19 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.
19 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?(
19 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