an.leclerc's avatar

an.leclerc wrote a reply+100 XP

2w ago

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

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

2w ago

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

2w ago

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

2mos ago

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

2mos ago

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

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

2mos ago

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

2mos ago

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

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

2mos ago

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

2mos ago

no one has the same problem ?

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

2mos ago

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

2mos ago

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

2mos ago

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 ?

an.leclerc's avatar

an.leclerc wrote a reply+100 XP

3mos ago

it works if I specify props in email.blade.php

<x-mail::message :logo="$logo">
...
</x-mail:message>

in message.blade.php

<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.url')" :logo="$logo">
...
</x-mail:header>
</x-slot:header>
...
</x-mail:layout>

in notification

$message->viewData['logo'] = 'https://dummyimage.com/200x60/ccc/000.png&text=DEMO+LOGO';

But it requires a lot of manipulation for very little.

an.leclerc's avatar

an.leclerc started a new conversation+100 XP

3mos ago

Hi,

I'd like to add custom properties in laravel notifications (laravel 12). I tried with :

...
$message = (new MailMessage)
            ->line('The introduction to the notification.')
            ->action('Notification Action', url('/'))
            ->line('Thank you for using our application!')
        ;

        $message->viewData['logo'] = 'https://dummyimage.com/200x60/ccc/000.png&text=DEMO+LOGO';
...

and

<x-mail::header :url="config('app.url')" :logo="$logo" :alt="$alt">
{{ config('app.name') }}
</x-mail::header>

But it doesn't works. I tried with @props and it doesn't works to.

Anyone can help me ?