Edit File: FriendReportNotification.php
<?php namespace App\Notifications; use Illuminate\Notifications\Notification; use Illuminate\Bus\Queueable; class FriendReportNotification extends Notification { use Queueable; private $data; public function __construct($report, $title_ar, $title_en, $body_ar, $body_en, $type) { $this->data = [ 'report_id' => $report->id, 'title_ar' => $title_ar, 'title_en' => $title_en, 'body_ar' => $body_ar, 'body_en' => $body_en, 'type' => $type ]; } public function via($notifiable) { return ['database']; } public function toArray($notifiable) { return $this->data; } }
Back to File Manager