In my Laravel application berkayk/onesignal-laravel package is used for notifications. And currently, it is not working and I need to log the onesignal response so I can debug the issue. Below is my function: $workspace = !empty(Config::get(‘system.one_signal_workspace’))?Config::get(‘system.one_signal_workspace’):false;$notification = null; if(!$workspace){ Log::alert([‘Workspace Not Found’]); } if(!empty($data)){ if(isset($data[‘type’]))$obj->type = $data[‘type’]; if(isset($data[‘notification_obj’])) $obj->notification =$data[‘notification_obj’]; try ..

I’m working on a website that is completely based on laravel. The frontend is in javascript and blade template. I have the feature of chat application in it, and I’m using pusher for this. Now, if the user has logged in via browser on their phone and then he closed the browser. now if he ..

i have a notification system that allows me to access other pages of my site. It works fine but only when there is one notification . When there is more, the others get marked as read and i can’t access to their links anymore. here is my code: @unless (auth()->user()->unreadNotifications->isEmpty()) <li class="nav-item dropdown"> <a href="" ..

i want to be able to send emails to user once i verify their account but i keep having this error "Call to undefined method stdClass::notify()" and i don’t know where i’m wrong. please help me look at my code and tell me whats wrong. this is my controller.php <?php namespace AppHttpControllers; use IlluminateHttpRequest; use ..

I’m using Laravel 8, and my Client asks to be able to modify the mailables content. I need to show the different notification templates, and let the users add text, action buttons, etc. I’m thinking on building a DB structure to store the different fields with the corresponding order, but I’m not sure if it ..

I have closure on saving model, where I need to check logic and if my if statement fails I want to throw error message, something like this: static::saving(function ($model) { if($model->default == ‘1’) { $model->default = ‘0’; //sweetAlert alert()->message(‘Message’, ‘Optional Title’); //notify notify()->success(‘Laravel Notify is awesome!’); } }); I tried both sweetAlert: https://github.com/uxweb/sweet-alert and notify: .. Read more I was trying to make some emails to send when someone register. here’s my code AppHttpApiNotificationEmail <?php namespace AppHttpApiNotification; use AppAbstractsHttpApiController; use AppNotificationsEmailEmailNotification; use AppHttpRequestsEmailEmail as Request; use IlluminateSupportFacadesMail; class Email extends ApiController { /** * email sent. * * @param Request$request * * @return Response */ public function sent(Request $request) {$to = ..

i need to send the email for the owner of product when user order this product… everything works well, but really i dont know the idea…. this is the Notification class: <?php namespace AppNotifications; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateNotificationsMessagesMailMessage; use IlluminateNotificationsNotification; class OrderNotification extends Notification { use Queueable; private $insertOrderData; /** * Create a .. Read more I want use socket.io as notification server that send notification to specific user . Laravel is backend & angular is frontend in my projcet can anyone help me ? Sourc.. Read more The mail notification sending code written in the handle method of the job works. But except that , no other line of codes work there. Even doing dd("hi") in the handle() not gives me any result. In the below code, inside the handle() i’ve written to update the status column of$this->user to true .But ..

The below given mail notification sending is a working code. But i wanted to add an error message when the mail sending job fails. i have added failed method in my job. But it seems like failed() is not called when the job fails. It’s showing the success message instead of the Job Failed message. ..

The below given mail notification sending is a working code. But this gives success message even if the mail sending failed. The success message is shown, just after the sendmailJob gets started & the notifications status is updated to true. So, even if the job fails, i get success message. but i want the success ..

i am sending a notification via email (smtp) and database. something like this link. when call the command from route by calling directly: Artisan::call(‘notification:unreadmessages’) it send an email and insert to notification table, while when call it from cron job or ssh run: php artisan my_notification:check it doesn’t send the email just add record to ..

There is a local service of the company where you can take a vacation on a robot. When the user selects dates and submits the form, the data is saved to the database and a notification is sent to the administrator in Slack. You need to make interactive confirmation and cancellation buttons that will send ..

I’m trying to implement the Database Notifications in Laravel 6 and I’m getting this error when I try to migrate my database, I don’t know how to solve it since the foreign keys is not defined inside the notifications table creation migration, this is the up method from the migration: public function up() { Schema::create("notifications", ..

So I am setting up a exception handler that send a Slack notification every time an exception happens in the application, I have also setup this when a Complaint(Model) is created and that work fine. But in my Exception/Handle.php I have this setup. Notification::route(‘slack’, env(‘LOG_SLACK_WEBHOOK_URL’))->notify(new ExceptionCreated($exception)); The webhook does exist and it does work. And .. Read more I am using Laravel 8 Jetstream. Given that I am using an additional and external database, I need to send email notifications to users, whose info is in that external database, where the email column name is different; let’s say "electronicmail". In the official docs it says: Remember, you may use the Notifiable trait on .. Read more I want to make a notification that renames the Notification table to the database and acts according to the model, where should I add and update it. App/notification/Bildirim.php <?php namespace AppNotifications; use AppModelsUye; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateNotificationsMessagesMailMessage; use IlluminateNotificationsNotification; class Bildirim extends Notification implements ShouldQueue { use Queueable; } my trait: <?php namespace .. Read more I am using Laravel’s default notifications system. However, I need an extra column in the notifications table to check if the user already has the same unread-notification or not. For example: If user’s profile is not complete then on every login he/she will be reminded until the profile is complete. But if the previously generated .. Read more The function I want to create is to include a notification function in posts, comments, likes, etc. When writing a post, Or when you comment on a post, etc. (Currently, this is only applicable when you write a comment on a post) I’ve created an AlarmNotification and confirmed that the notifications are stacking up in .. Read more I created a laravel notification class with php artisan make:notification NewUserNotification class NewUserNotification extends Notification { use Queueable; protected$cost; private $order_id; /** * Create a new notification instance. * * @return void */ public function __construct($cost, $order_id) {$this->cost = $cost;$this->order_id = $order_id; } /** * Get the notification’s delivery channels. * * .. Read more$getdata = $this->patientVital->getNotificationResult(); if (!empty($getdata)) { if (!empty($getdata[‘daily’])) { foreach ($getdata[‘daily’] as $value) { foreach ($value[‘reminder_time’] as $reminder_time) {$time = strtotime(preg_replace(‘/s+/’, ”, $reminder_time[‘time’])); if ($time == strtotime($current_time) &&$reminder_time[‘is_reminder_selected’] == ‘true’) { $this->fireFCMNotification($getdata); } } } Sourc..