mercredi 18 juillet 2018

Response giving unwanted characters

I have a function

public function getList(){

    $abc=['a'];
    return response($abc)
            ->header('Content-Type', 'text/plain');
}

the response i get in browser is

<!-- ["a"]

how can I get rid of < !-- that gets concatenated with it everytime



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire