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 Illuminate\Tests\Integration\Http\Fixtures; use Illuminate\Http\Resource..
Decoded Output download
<?php
namespace Illuminate\Tests\Integration\Http\Fixtures;
use Illuminate\Http\Resources\Json\JsonResource;
class PostResource extends JsonResource
{
public function toArray($request)
{
return ['id' => $this->id, 'title' => $this->title, 'custom' => true];
}
public function withResponse($request, $response)
{
$response->header('X-Resource', 'True');
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Tests\Integration\Http\Fixtures;
use Illuminate\Http\Resources\Json\JsonResource;
class PostResource extends JsonResource
{
public function toArray($request)
{
return ['id' => $this->id, 'title' => $this->title, 'custom' => true];
}
public function withResponse($request, $response)
{
$response->header('X-Resource', 'True');
}
}
Function Calls
None |
Stats
MD5 | c11f09dc59f13d41b25915c6caf294fd |
Eval Count | 0 |
Decode Time | 104 ms |