. */ declare(strict_types=1); namespace FireflyIII\Events; use FireflyIII\User; use Illuminate\Queue\SerializesModels; /** * Class AdminRequestedTestMessage. */ class AdminRequestedTestMessage extends Event { use SerializesModels; public User $user; /** * Create a new event instance. */ public function __construct(User $user) { app('log')->debug(sprintf('Triggered AdminRequestedTestMessage for user #%d (%s)', $user->id, $user->email)); $this->user = $user; } }