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\Http\Controllers\Controller; use App\H..
Decoded Output download
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Http\Requests\API\FetchRandomSongsInGenreRequest;
use App\Http\Resources\SongResource;
use App\Models\User;
use App\Repositories\SongRepository;
use Illuminate\Contracts\Auth\Authenticatable;
class FetchRandomSongsInGenreController extends Controller
{
/** @param User $user */
public function __invoke(
FetchRandomSongsInGenreRequest $request,
SongRepository $repository,
Authenticatable $user
) {
return SongResource::collection($repository->getRandomByGenre($request->genre, $request->limit, $user));
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Http\Requests\API\FetchRandomSongsInGenreRequest;
use App\Http\Resources\SongResource;
use App\Models\User;
use App\Repositories\SongRepository;
use Illuminate\Contracts\Auth\Authenticatable;
class FetchRandomSongsInGenreController extends Controller
{
/** @param User $user */
public function __invoke(
FetchRandomSongsInGenreRequest $request,
SongRepository $repository,
Authenticatable $user
) {
return SongResource::collection($repository->getRandomByGenre($request->genre, $request->limit, $user));
}
}
Function Calls
None |
Stats
MD5 | 1f96350bbceee48489a0e1e444e5e4bf |
Eval Count | 0 |
Decode Time | 88 ms |