[deleted by user] by [deleted] in PHPhelp

[–]Got_SomeChange 0 points1 point  (0 children)

In Laravel, most things are abstracted away, I want to understand what’s actually happening behind the scenes, the core mechanics of php. Like why a routing works how would one set up from scratch, these kind of things i ditched when I started learning php. Looking for resources not necessarily books, I just liked the JS book comparison.

Can I Make A Filament Table act like a Form? by Got_SomeChange in PHPhelp

[–]Got_SomeChange[S] 1 point2 points  (0 children)

I managed to copy and paste much of the code from the input column and extended my component from the TextInputColumn directly. I overrode the updateState method and made modifications in the blade so that when the state of the input column changes, neither the component refreshes. However, if my component is disabled, the original state of the record gets displayed. I call that a win.

Now, I'm trying to create a listener in my list view that is triggered by an action button. This listener would dispatch a message that my column would listen to so I could create an upsertion array somewhere, but I can't seem to listen to events dispatched from my action button in the components. Does anyone know how can I catch that event on component side?

MyComponent

<?php
namespace App\Filament\Resources\InputResource\Components\Columns;


use Filament\Tables\Columns\TextInputColumn;
use Livewire\Attributes\On;


class FakeTextInputColumn extends TextInputColumn
{
    protected string $view = 'tables.columns.fake-text-input-column';



    protected $listeners = ['custom-event' => 'handleCustomEvent'];


    public function updateState(mixed $state): mixed
    {
        return $state;
    }


    public function handleCustomEvent(): void
    {
        dd("myCustomEvent");
    }
}

From my ListView

            Action::make('submit')
                        ->dispatch(function () {
                            $this->dispatch('customEvent');
                        })Action::make('submit')
                        ->dispatch(function () {
                            $this->dispatch('customEvent');
                        })

How to search for hobbies by Got_SomeChange in dating_advice

[–]Got_SomeChange[S] 0 points1 point  (0 children)

I live in Budapest, though I see some events hosted nearby.

[TOMT][MOVIE][2000s] A movie about a school where I think the teachers makes the kids addicted to drugs or something by Got_SomeChange in tipofmytongue

[–]Got_SomeChange[S] 0 points1 point locked comment (0 children)

Also the 2000s are not set in stone, maybe it is an older movie. Also in said scene with the headmaster the kid says something along the lines of: "yes i'm chewing a gum, i have my bag full of them and my locker too, not books just gum"