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 PowerComponents\LivewirePowerGrid\Tests\Concerns\Models; use Illuminate\..
Decoded Output download
<?php
namespace PowerComponents\LivewirePowerGrid\Tests\Concerns\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
use PowerComponents\LivewirePowerGrid\Tests\Models\ParentCategory;
/**
* @property int $id
* @property string $name
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class Category extends Model
{
protected $table = 'categories';
protected $fillable = [
'name',
];
public function dishes()
{
return $this->hasMany(Dish::class, 'category_id');
}
public function parentCategory()
{
return $this->belongsTo(ParentCategory::class, 'parent_category_id');
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace PowerComponents\LivewirePowerGrid\Tests\Concerns\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
use PowerComponents\LivewirePowerGrid\Tests\Models\ParentCategory;
/**
* @property int $id
* @property string $name
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class Category extends Model
{
protected $table = 'categories';
protected $fillable = [
'name',
];
public function dishes()
{
return $this->hasMany(Dish::class, 'category_id');
}
public function parentCategory()
{
return $this->belongsTo(ParentCategory::class, 'parent_category_id');
}
}
Function Calls
None |
Stats
MD5 | d4b457c5c5956f2ceba560578c1bf5bc |
Eval Count | 0 |
Decode Time | 98 ms |