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; use App\Models\Carmis; use Illuminate\Contracts\Queue\Sho..

Decoded Output download

<?php

namespace App\Listeners;

use App\Models\Carmis;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Events\GoodsDeleted as GoodsDeletedEvent;

class GoodsDeleted
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle(GoodsDeletedEvent $event)
    {
        Carmis::query()->where('goods_id', $event->goods->id)->delete();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Listeners;

use App\Models\Carmis;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Events\GoodsDeleted as GoodsDeletedEvent;

class GoodsDeleted
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle(GoodsDeletedEvent $event)
    {
        Carmis::query()->where('goods_id', $event->goods->id)->delete();
    }
}

Function Calls

None

Variables

None

Stats

MD5 f19c0642f8e90537ba3f746cc34db14c
Eval Count 0
Decode Time 118 ms