New notification page..

This commit is contained in:
Cüneyt Şentürk
2021-06-19 18:16:09 +03:00
parent 856e10a2dd
commit 4687185f4a
34 changed files with 2652 additions and 43 deletions

View File

@ -15,16 +15,19 @@ class CreateMediableForExport extends JobShouldQueue
protected $file_name;
protected $translation;
/**
* Create a new job instance.
*
* @param $user
* @param $file_name
*/
public function __construct($user, $file_name)
public function __construct($user, $file_name, $translation)
{
$this->user = $user;
$this->file_name = $file_name;
$this->translation = $translation;
$this->onQueue('jobs');
}
@ -42,7 +45,7 @@ class CreateMediableForExport extends JobShouldQueue
$download_url = route('uploads.download', ['id' => $media->id, 'company_id' => company_id()]);
$this->user->notify(new ExportCompleted($download_url));
$this->user->notify(new ExportCompleted($this->translation, $this->file_name, $download_url));
}
public function getQueuedMedia()