����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 52.15.179.198 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/gle.gltechlimited.com/app/Notifications/ |
Upload File : |
<?php namespace App\Notifications; use App\Notifications\CustomDbChannel; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; class MyNotification extends Notification { use Queueable; public $title; public $desc; public $movie_id; public $tvid; public $user_id; protected $casts = ['user_id' => 'array']; /** * Create a new notification instance. * * @return void */ public function __construct($title, $desc, $movie_id, $tvid, $user_id) { $this->title = $title; $this->desc = $desc; $this->movie_id = $movie_id; $this->tvid = $tvid; $this->user_id = $user_id; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [CustomDbChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toDatabase($notifiable) { return [ 'title' => $this->title, 'data' => $this->desc, 'movie_id' => $this->movie_id, 'tv_id' => $this->tvid, 'notifiable_id' => $this->user_id, ]; } }