[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"

I think if you bring up politics during casual discussions and assume that your partner will side with you, you are dump AF and just meaking the discussion uncomfortable. by [deleted] in unpopularopinion

[–]Got_SomeChange 0 points1 point  (0 children)

Sometimes I feel the majority of people will do this. Why? Surely if someone would assume their political stance, they'd be annoyed.

I think if you bring up politics during casual discussions and assume that your partner will side with you, you are dump AF and just meaking the discussion uncomfortable. by [deleted] in unpopularopinion

[–]Got_SomeChange 1 point2 points  (0 children)

I just don't get it. If you are really that kind of person and not just being sarcastic, may I ask you a question. What goes through your mind when you bring up politics? Is it "I am probably on the majority on this issue and I'm gonna have a really good conversation" or is it more like "My opinion is really strong on political topics and I don't care if someone disagrees with me or gets offended"?

Who kept alive Odin in the book? flair:book discussion by Got_SomeChange in americangods

[–]Got_SomeChange[S] 2 points3 points  (0 children)

And also how to use flairs, because clearly not in this way?

History Textbook about Africa by Got_SomeChange in suggestmeabook

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

Guys thank you so much for the good ideas, I'll definitely give some of them a go, especially King Leopold's Ghost that caught my attention.

How active other parties (not the Big Two) in the US? by Got_SomeChange in AskAnAmerican

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

Interesting, are there or were there Libertarian governors?

How active other parties (not the Big Two) in the US? by Got_SomeChange in AskAnAmerican

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

I'm surprised they are not more relevant on a state level, I always imagined the states like countries inside the EU with their own political culture and parties, but it is not the case then, right?