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 declare(strict_types=1); namespace App\Traits; use App\User; use Illuminate\Datab..

Decoded Output download

<?php

declare(strict_types=1);

namespace App\Traits;

use App\User;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

trait HasOwner
{
    public function owner(): ?User
    {
        return $this->ownerRelation;
    }

    public function ownerRelation(): BelongsTo
    {
        return $this->belongsTo(User::class, 'author_id');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace App\Traits;

use App\User;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

trait HasOwner
{
    public function owner(): ?User
    {
        return $this->ownerRelation;
    }

    public function ownerRelation(): BelongsTo
    {
        return $this->belongsTo(User::class, 'author_id');
    }
}

Function Calls

None

Variables

None

Stats

MD5 34863d302ad09b77361b1488c9cb21f7
Eval Count 0
Decode Time 78 ms