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\Http\Controllers\API; use App\Events\LibraryChanged; use App\Http\Co..
Decoded Output download
<?php
namespace App\Http\Controllers\API;
use App\Events\LibraryChanged;
use App\Http\Controllers\Controller;
use App\Http\Requests\API\UploadArtistImageRequest;
use App\Models\Artist;
use App\Services\MediaMetadataService;
class UploadArtistImageController extends Controller
{
public function __invoke(
UploadArtistImageRequest $request,
Artist $artist,
MediaMetadataService $mediaMetadataService
) {
$mediaMetadataService->writeArtistImage(
$artist,
$request->getFileContentAsBinaryString(),
$request->getFileExtension()
);
event(new LibraryChanged());
return response()->json(['imageUrl' => $artist->image]);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Http\Controllers\API;
use App\Events\LibraryChanged;
use App\Http\Controllers\Controller;
use App\Http\Requests\API\UploadArtistImageRequest;
use App\Models\Artist;
use App\Services\MediaMetadataService;
class UploadArtistImageController extends Controller
{
public function __invoke(
UploadArtistImageRequest $request,
Artist $artist,
MediaMetadataService $mediaMetadataService
) {
$mediaMetadataService->writeArtistImage(
$artist,
$request->getFileContentAsBinaryString(),
$request->getFileExtension()
);
event(new LibraryChanged());
return response()->json(['imageUrl' => $artist->image]);
}
}
Function Calls
None |
Stats
MD5 | 1e46d2f339523f924fb49bc073d55ee5 |
Eval Count | 0 |
Decode Time | 116 ms |