Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.
This repository was archived by the owner on May 1, 2021. It is now read-only.

json pretty print for superuser #7

@markosiilak

Description

@markosiilak

Is ther a way for using pretty print without changing your RestApi/Router.php file?

Example:
if (wire('roles')->get("name=superuser")) { $beauty = JSON_PRETTY_PRINT; } echo json_encode($return, $beauty);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions