Edit File: FriendRequestNotification.php
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use App\Traits\FirebaseTrait; class FriendRequestNotification extends BaseNotification { use Queueable, FirebaseTrait; public $data; public function __construct($request, $title_ar, $title_en, $body_ar, $body_en, $type) { $this->data = [ 'user_id' => $request->user_id, 'request_id' => $request->id, 'title_ar' => $title_ar, 'title_en' => $title_en, 'body_ar' => $body_ar, 'body_en' => $body_en, 'type' => $type, ]; } }
Back to File Manager