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\Models\Auth; use App\Abstracts\Model; class UserRole extends Model ..

Decoded Output download

<?php

namespace App\Models\Auth;

use App\Abstracts\Model;

class UserRole extends Model
{
    protected $table = 'user_roles';

    protected $tenantable = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['user_id', 'role_id'];

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    public function user()
    {
        return $this->belongsTo(user_model_class());
    }

    public function role()
    {
        return $this->belongsTo(role_model_class());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Models\Auth;

use App\Abstracts\Model;

class UserRole extends Model
{
    protected $table = 'user_roles';

    protected $tenantable = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['user_id', 'role_id'];

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    public function user()
    {
        return $this->belongsTo(user_model_class());
    }

    public function role()
    {
        return $this->belongsTo(role_model_class());
    }
}

Function Calls

None

Variables

None

Stats

MD5 db5f1579def8c8f688ce456170479da6
Eval Count 0
Decode Time 101 ms