12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace App\Notifications;
- use Illuminate\Bus\Queueable;
- use Illuminate\Notifications\Notification;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Notifications\Messages\MailMessage;
- class ProposalStatusNotification extends Notification
- {
- use Queueable;
- protected $proposal,$action_type, $addedBy;
-
- public function __construct($proposal,$action_type, $addedBy)
- {
- $this->proposal = $proposal;
- $this->action_type = $action_type;
- $this->addedBy = $addedBy;
-
- }
-
- public function via($notifiable)
- {
- return ['database'];
- }
-
- public function toDatabase($notifiable)
- {
- return [
- 'proposal' => $this->proposal,
- 'action_type' => $this->action_type,
- 'addedBy' => $this->addedBy,
- 'user' => $notifiable
- ];
- }
-
- public function toArray($notifiable)
- {
- return [
-
- ];
- }
- }
|