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\Goods; use Illuminate\Contracts\Queue\Shou..

Decoded Output download

<?php

namespace App\Listeners;

use App\Models\Goods;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Events\GoodsGroupDeleted as GoodsGroupDeletedEvent;

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

    /**
     * Handle the event.
     *
     * @param  GoodsGroupDeletedEvent  $event
     * @return void
     */
    public function handle(GoodsGroupDeletedEvent $event)
    {
        Goods::query()->where('group_id', $event->goodsGroup->id)->delete();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Listeners;

use App\Models\Goods;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use App\Events\GoodsGroupDeleted as GoodsGroupDeletedEvent;

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

    /**
     * Handle the event.
     *
     * @param  GoodsGroupDeletedEvent  $event
     * @return void
     */
    public function handle(GoodsGroupDeletedEvent $event)
    {
        Goods::query()->where('group_id', $event->goodsGroup->id)->delete();
    }
}

Function Calls

None

Variables

None

Stats

MD5 c22ef20aee770fba917c2ea78baa1fa8
Eval Count 0
Decode Time 87 ms