App\Http\Controllers\API\PlaylistController::index PHP Méthode

index() public méthode

Gets all playlists by the current user.
public index ( ) : Illuminate\Http\JsonResponse
Résultat Illuminate\Http\JsonResponse
    public function index()
    {
        return response()->json(Playlist::byCurrentUser()->orderBy('name')->with('songs')->get());
    }