Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Listeners\Document; use App\Events\Document\DocumentReminded as Even..

Decoded Output download

<?php

namespace App\Listeners\Document;

use App\Events\Document\DocumentReminded as Event;
use App\Traits\Documents;

class SendDocumentReminderNotification
{
    use Documents;

    /**
     * Handle the event.
     *
     * @param  $event
     * @return array
     */
    public function handle(Event $event)
    {
        $document = $event->document;
        $notification = $event->notification;

        // Notify the customer
        if ($this->canNotifyTheContactOfDocument($document)) {
            $document->contact->notify(new $notification($document, "{$document->type}_remind_customer"));
        }

        // Notify all users assigned to this company
        foreach ($document->company->users as $user) {
            if ($user->cannot('read-notifications')) {
                continue;
            }

            $user->notify(new $notification($document, "{$document->type}_remind_admin"));
        }
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Listeners\Document;

use App\Events\Document\DocumentReminded as Event;
use App\Traits\Documents;

class SendDocumentReminderNotification
{
    use Documents;

    /**
     * Handle the event.
     *
     * @param  $event
     * @return array
     */
    public function handle(Event $event)
    {
        $document = $event->document;
        $notification = $event->notification;

        // Notify the customer
        if ($this->canNotifyTheContactOfDocument($document)) {
            $document->contact->notify(new $notification($document, "{$document->type}_remind_customer"));
        }

        // Notify all users assigned to this company
        foreach ($document->company->users as $user) {
            if ($user->cannot('read-notifications')) {
                continue;
            }

            $user->notify(new $notification($document, "{$document->type}_remind_admin"));
        }
    }
}

Function Calls

None

Variables

None

Stats

MD5 ced17eb4cdfd34f66d06105a71d5946b
Eval Count 0
Decode Time 118 ms