Файловый менеджер - Редактировать - /home/easybachat/hisabat365.com/4a7891/Notifications.zip
Ðазад
PK �)[^���� � InvoiceUpdated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class InvoiceUpdated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $invoice; public function __construct($invoice) { $this->invoice = $invoice; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->invoice->id, 'url' => 'client/view_invoice/'.md5($this->invoice->id), 'client_url' => 'client/view_invoice/'.md5($this->invoice->id), 'title' => _lang('Updated Invoice'), 'content' => _lang('Invoice').'# '.$this->invoice->invoice_number, ]; } } PK �)[�\5�� � ProjectUpdated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class ProjectUpdated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $project; public function __construct($project) { $this->project = $project; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->project->id, 'url' => 'projects/'.$this->project->id, 'client_url' => 'client/projects/'.$this->project->id, 'title' => _lang('Updated Project'), 'content' => _lang('Project').' '.$this->project->id.'# '.$this->project->name, ]; } } PK �)[( � � ContactAccount.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class ContactAccount extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $account; public function __construct($account) { $this->account = $account; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $login_url = url('login'); return (new MailMessage) ->subject(_lang('Client Portal Access')) ->line(_lang('Your email has registered to our client portal.')) ->line(_lang('You can now login to your client portal using following details.')) ->line(_lang('Email').': '.$this->account->email) ->line(_lang('Password').': '.$this->account->password) ->action(_lang('Login to Portal'), $login_url) ->line(_lang('Thank you for joining with us!')); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } PK �)[d{��� � InvoiceCreated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class InvoiceCreated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $invoice; public function __construct($invoice) { $this->invoice = $invoice; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->invoice->id, 'url' => 'client/view_invoice/'.md5($this->invoice->id), 'client_url' => 'client/view_invoice/'.md5($this->invoice->id), 'title' => _lang('Created New Invoice'), 'content' => _lang('Invoice').'# '.$this->invoice->invoice_number, ]; } } PK �)[8h�� � ProjectCreated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class ProjectCreated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $project; public function __construct($project) { $this->project = $project; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->project->id, 'url' => 'projects/'.$this->project->id, 'client_url' => 'client/projects/'.$this->project->id, 'title' => _lang('Created New Project'), 'content' => _lang('Project').' '.$this->project->id.'# '.$this->project->name, ]; } } PK �)[˳�� � DBChannel.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Notifications\Notification; class DBChannel { public function send($notifiable, Notification $notification) { $data = $notification->toArray($notifiable); return $notifiable->routeNotificationFor('database')->create([ 'id' => $notification->id, 'user_id' => \Auth::user()->id, 'type' => get_class($notification), 'data' => $data, 'read_at' => null, ]); } }PK �)[}O�� DBNotification.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Notifications\DatabaseNotification; class DBNotification extends DatabaseNotification { public function user() { return $this->belongsTo('App\User','user_id')->withDefault(); } }PK �)[`t � � TaskCreated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class TaskCreated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $task; public function __construct($task) { $this->task = $task; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->task->id, 'url' => 'tasks/'.$this->task->id, 'client_url' => '', 'title' => _lang('Created New Task'), 'content' => _lang('Task').' '.$this->task->id.'# '.$this->task->title, ]; } } PK �)[b� 3� � TaskUpdated.phpnu �Iw�� <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use App\Notifications\DBChannel; class TaskUpdated extends Notification { use Queueable; /** * Create a new notification instance. * * @return void */ private $task; public function __construct($task) { $this->task = $task; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return [DBChannel::class]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ 'id' => $this->task->id, 'url' => 'tasks/'.$this->task->id, 'client_url' => '', 'title' => _lang('Updated Task'), 'content' => _lang('Task').' '.$this->task->id.'# '.$this->task->title, ]; } } PK �)[^���� � InvoiceUpdated.phpnu �Iw�� PK �)[�\5�� � - ProjectUpdated.phpnu �Iw�� PK �)[( � � N ContactAccount.phpnu �Iw�� PK �)[d{��� � G InvoiceCreated.phpnu �Iw�� PK �)[8h�� � x ProjectCreated.phpnu �Iw�� PK �)[˳�� � � DBChannel.phpnu �Iw�� PK �)[}O�� � DBNotification.phpnu �Iw�� PK �)[`t � � TaskCreated.phpnu �Iw�� PK �)[b� 3� � �# TaskUpdated.phpnu �Iw�� PK � �(
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка