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\Resources\SongResource;
use App\Models\Artist;
use App\Models\User;
use App\Repositories\SongRepository;
use Illuminate\Contracts\Auth\Authenticatable;

class ArtistSongController extends Controller
{
    /** @param User $user */
    public function __construct(private SongRepository $songRepository, private ?Authenticatable $user)
    {
    }

    public function index(Artist $artist)
    {
        return SongResource::collection($this->songRepository->getByArtist($artist, $this->user));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;
use App\Http\Resources\SongResource;
use App\Models\Artist;
use App\Models\User;
use App\Repositories\SongRepository;
use Illuminate\Contracts\Auth\Authenticatable;

class ArtistSongController extends Controller
{
    /** @param User $user */
    public function __construct(private SongRepository $songRepository, private ?Authenticatable $user)
    {
    }

    public function index(Artist $artist)
    {
        return SongResource::collection($this->songRepository->getByArtist($artist, $this->user));
    }
}

Function Calls

None

Variables

None

Stats

MD5 dbaa8e5a08eba5d114e6fff79d597c81
Eval Count 0
Decode Time 113 ms