jeudi 4 juin 2020

How do i pass language localization key with laravel echo?

I'm currently trying to pass 'remarks' to my live chat, but it's not processing the localization before sending it to my live chat. However, the results are correct only after i refresh my live chat page.

Current result without refreshing: layouts/notification.timeline_so_create

Current result after refreshing: SO-0002118 created by SuperAdmin

$eventData = [
                'id' => $request['incident_id'],
                'category' => 'so_created',
                'so_id' => $serviceOrder->id,
                'state' => 'New',
                'remarks' => 'layouts/notification.timeline_so_create',
                'parameters' => json_encode(['so_no' => $request['so_no'], 'user' => getusername(Auth::user()->id)])
            ];


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire