Javascript call inside Laravel Translation file

Laravel 5.8 with translation files. I need to call a Javascript function from inside a translation file. My initial approach was to call it like this: ‘mentioned you in a <a href=”javascript:postinfo(:post);”>comment</a>’ This is the call from my blade file: {!! __(‘notifications.mentionTimelinePost’, [‘post’ => $mention->data[‘post’]]) !!} I will actually need it inside that translation file…

Laravel, get two functions

I would like some help, Within the “users” table I have the structure “referrer_id“, “name” and “active“. In this function below I can only get the names of the users in the “users” table, how can I also get the status “active“? public function nnIndicaded() { return implode(‘<li>’, User::where(‘referrer_id’, $this->id)->pluck(‘name’)->all()); }

Odd Laravel apiResource routes issue

the route for my show function in an apiResource is not working, but if I overload the route and point to the function it works as expected. resource route does note work Route::apiResource(‘/delivery_handler/chat/’,’CartDeliveryListChatController’); working route Route::get(‘/delivery_handler/chat/{id?}’, function ($id) { return (new App\Http\Controllers\Api\CartDeliveryListChatController)->show($id); }); in my controller /** * @param $chatId * @return CartDeliveryListChatResource */ public…