V
V
Vadim Popov2018-12-24 15:07:51
XML
Vadim Popov, 2018-12-24 15:07:51

How to convert array to xml in laravel?

How to convert array from model to xml using laravel?
Controller :
$data = App\Test::unidentified();
Model:

public static function unidentified(){
      return static::where('id','>',0)->orderBy('Fam');
    }

Is there an analogue of the method from Yii Response::FORMAT_XML ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2018-12-24
@vadimpopov94

No means.
mtownsend5512/response-xml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question