composer require ldc/web-status-checker-laravel remove Old static status checker Fix ImportMedia WIP commands OK many fixes Fix and try to optimize folder component Fix front icons + actions based on icons Favico front fix alert Fix Media upload on depot fix folder component buttons Full front fix with perf due tu vuejs Download medias Navigate within medias superfix Move media + loader isLocked boolean and remove media fix Folder scroll fix arcadia link color red Fix panier show external Tons of fixes back as front REwrited all
60 lines
1 KiB
PHP
60 lines
1 KiB
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Media;
|
|
use App\Models\User;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MediaLinkWithArcadia
|
|
{
|
|
use Dispatchable;
|
|
use SerializesModels;
|
|
|
|
/**
|
|
* The user who created the media
|
|
*
|
|
* @var \App\Models\User
|
|
*/
|
|
private $user;
|
|
|
|
/**
|
|
* The media
|
|
*
|
|
* @var \App\Models\Media
|
|
*/
|
|
private $media;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param \App\Models\User $user
|
|
* @param \App\Models\Media $media
|
|
*/
|
|
public function __construct(User $user, Media $media)
|
|
{
|
|
$this->user = $user;
|
|
$this->media = $media;
|
|
}
|
|
|
|
/**
|
|
* Get User who triggered the event
|
|
*
|
|
* @return \App\Models\User
|
|
*/
|
|
public function getUser(): User
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
/**
|
|
* Get the media
|
|
*
|
|
* @return \App\Models\Media
|
|
*/
|
|
public function getMedia(): Media
|
|
{
|
|
return $this->media;
|
|
}
|
|
}
|