luciano.mizra
luciano.mizra
Explore posts from servers
FFilament
Created by luciano.mizra on 9/14/2024 in #❓┊help
Hot refresh
I understand that one of the disadvantages we have when working with TALL is that every change in a Blade template requires me to refresh the entire screen in the browser instead of using "Hot Module Replacement." This takes a few seconds with each change. Does anyone have any advice or practices so that every time I save, it doesn't result in a long wait and I can maintain an uninterrupted workflow? (Let’s understand that this is not a criticism of the stack, but rather a way to find a solution to a problem.)
3 replies
FFilament
Created by luciano.mizra on 8/26/2024 in #❓┊help
Data too long for column for "string"
No description
7 replies
FFilament
Created by luciano.mizra on 8/9/2024 in #❓┊help
Isolate CSS in BlocksPreview
I am creating previews for a "Builder (blockPreviews)" form with the new filament function. But it turns out that it inserts the blade view as is in my panel and I need to use the styles of my "front" and ignore those of filament that I am using as an admin panel only. I thought about creating iframes but there I should solve the way I send the props and the load would be slow. Has anyone considered this problem before?
5 replies
FFilament
Created by luciano.mizra on 3/14/2024 in #❓┊help
Lifecycles livewire, $table fires before my methods
No description
1 replies
TCTwill CMS
Created by luciano.mizra on 12/13/2023 in #👊support
Edit defaultOrders in controller
What would be the most correct way to edit? $this->defaultOrders of ModuleController in my controller, I understand that setting it in setUpController would work, but it is not a public method, My idea is something similar to this: $this->enableReorder(); $this->defaultOrders = [ 'publish_start_date' => 'desc'];
2 replies
TCTwill CMS
Created by luciano.mizra on 9/6/2023 in #👊support
afterReorder
Is it possible to add a function before or after saving the positions of my module? I need it in order to clear the cache of my site every time the position of the elements changes. I need something similar to this <?php namespace A17\Twill\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Support\Facades\DB; use A17\Twill\Models\Model; class ReorderNestedModuleItems implements ShouldQueue { use Dispatchable; use InteractsWithQueue; use Queueable; protected $modelClass; protected $ids; public function __construct(Model $model, array $ids) { $this->modelClass = get_class($model); $this->ids = $ids; } public function handle() { DB::transaction(function () {
// Here custom function app($this->modelClass)->saveTreeFromIds($this->ids); }, 3); } }
6 replies
TCTwill CMS
Created by luciano.mizra on 7/20/2023 in #👊support
Injecting Fields from a BladePartial into a Block Form
No description
4 replies
TCTwill CMS
Created by luciano.mizra on 7/14/2023 in #👊support
DefaultBlocks
Hi! Is there a way to hardcode the default blocks as well as prevent the user from loading them manually, something like this: BlockEditor::make() ->defaultBlocks([ [ 'name' => 'ContentItems', 'values' => [ 'title' => 'Título por defecto' ] ], [ 'name' => 'text', 'values' => [ 'text' => 'Texto por defecto' ] ] ])
5 replies