Category : laravel-notification

I using Laravel 7 and I have the tickets table that I have 5 statuses these statuses are the foreign key from the statuses table. id ticket_code owner_id status_id 1 A123 1 2 2 B456 2 6 When the ticket is created. I will select only 2 or 6 notify approvers (manager and senior manager) ..

Read more

I have an issue sending Mails with Laravel (8.43.0). The project is an intranet app without access to the internet, so updating components will be very tricky. I’ve got a lot of Notification classes like this one for example: <?php namespace AppNotifications; use AppModelsUser; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateNotificationsMessagesMailMessage; use IlluminateNotificationsNotification; use Throwable; class ..

Read more

I am trying to send a notification via email. Everything is fine as long as I don’t want to do it on the job. When I add implements ShouldQueue to the notification class, the task fails with the error Swift_TransportException: Cannot send message without a sender address in C: Users (…) vendor swiftmailer swiftmailer lib ..

Read more

I have applied Laravel Notifications email template to send email when a comment is applied. Here the code: $mailmessage= (new MailMessage) ->line( __(‘messages.hello’).’ ‘.$this->arr[‘user’].’,’) ->line($this->arr[‘created_by’].’ ‘.__(‘messages.comment_’.$this->arr[‘function_name’].’_you_owner’,[‘task_name’=>$this->arr[‘function_title’]] )) ->line(new HtmlString(‘<div class="lightgreylayer">’.$this->arr[‘comment’].'<div>’)) ->action(__(‘titles.view_’.$this->arr[‘function_name’]), url($link)); All works fine except for a class lightgreylayer I applied to a single line. the class is applied, but to all the following ..

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 trying to send and receive a database notification. but when trying to access it shows an error as mention above. Data is store in the database notification table. TaskCompleted.php class TaskCompleted extends Notification { use Queueable; public $user; public function __construct() { } public function via($notifiable) { return [‘database’]; } public function toArray($notifiable) ..

Read more

What I want to archive: I’d like to create a Zammad ticket using the Zammad-api but also parse markdown. To do so, I created a custom channel to send a notification to the Zammad Helpdesk system using Zammad’s API. This is the specific class: <?php namespace AppChannels; use IlluminateMailMailable; class ZammadMessage extends Mailable { /** ..

Read more

When I try to install the notification channel laravel-notification-channels/clickatell it gives me the error below. How can I clear it? – Root composer.json requires laravel-notification-channels/clickatell ^0.1.4 -> satisfiable by laravel-notification-channels/clickatell[0.1.4]. – laravel-notification-channels/clickatell 0.1.4 requires illuminate/notifications ~5.5 || ~6.0 || ~7.0 -> found illuminate/notifications[v5.5.0, …, 5.8.x-dev, v6.0.0, …, 6.x-dev, v7.0.0, …, 7.x-dev] but these were not ..

Read more

I want my users to receive notifications when someone else followed the user/favourited their post/commented on their post, I saw that Laravel have built-in support for notifications ( notification table as well ), do I need to design a new notification table schema like: CREATE TABLE `notification`.`notification` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `userId` BIGINT ..

Read more