Summer Sale! All accounts are 50% off this week.

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

3mos ago

Problem with dispatch on parent component

problem solved... there was an sql error so I passed into the exception

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

3mos ago

Problem with dispatch on parent component

even if I remove pagination and clear all caches, it doesn't work

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

3mos ago

Problem with dispatch on parent component

Hi,

I've a component (lead-not-assigned.blade.php)

And his child component (lead-not-assigned-card.blade.php) :

But dispatch does not work ! dossiers method in parent component always display lead whereas it's not an not assigned lead anymore. Anyone has an idea ?

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

4mos ago

Problem with livewire slots

Bonjour,

Non pas de visio, oui j'ai regardé la vidéo, d'ou ce post.

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

4mos ago

Problem with livewire slots

Le wire:show ne se met pas à jour en fonction du computed ?

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

4mos ago

Problem with livewire slots

Bonjour Vincent :)

Du coup ça fonctionne mais quand je delete un par un les items, la liste ne se met pas à jour, comme si le computed ne se mettait pas à jour :

Si je delete le background de la card et la border devrait changer, ainsi que les buttons, mais il faut que je rafraichisse la page

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

4mos ago

Problem with livewire slots

My bad, it works, I didn't published vendor ...

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

4mos ago

Problem with livewire slots

Hi,

I've some problems with livewire slots. It doesn't works. I follow Caleb podcast and I don't understand what's wrong with my code .

Here is my list component :

Here is my card component :

The problem is, when I check checkboxes, nothing happen. It works if I put checkbox outside of the slot but inside no. I don't understand why. Anyone can help ?

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

4mos ago

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

5mos ago

Dispatch between livewire component and Volt component

Hi,

I've set up a dispatch on my code,but it's not working. What I'm doing wrong ?

In my livewire component I have :

$this->dispatch("document-uploaded.{$this->dossier->id}");

and in my volt component :

But parameters "uploaded" and "total" are not updated .

Anybody have an idea ?

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

5mos ago

Problem with foreach - array offset on null

The problem was I had another parameter which have the same name. It made a conflict.

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

5mos ago

Problem with foreach - array offset on null

Hi,

I've a problem, in my component I've 2 methods :

#[Computed]
    public function resourceTypes()
    {
        return ResourceTypeModel::orderBy('name', 'ASC')->get();
    }

    #[Computed]
    public function periodicityTypes()
    {
        return PeriodicityTypeModel::orderByRaw("FIELD(reference, 'mensuelle', 'trimestrielle', 'semestrielle', 'annuelle') DESC")->get();
    }

In my blade template, I try to use foreach, it doesn't work

<flux:select variant="listbox" placeholder="Choose industry...">
	@foreach($this->resourceTypes as $item)
		<flux:select.option>{{ $item->name }}</flux:select.option>
	@endforeach
</flux:select>

I've this error

Trying to access array offset on null (View: /var/www/vendor/laravel/framework/src/Illuminate/Foundation/resources/exceptions/renderer/markdown.blade.php)

If I change resourceTypes by resources in my blade template IT WORKS, I don't what's wrong with resourceTypes !!! If anybody can help ?