Support the ongoing development of Laravel.io →
posted 10 years ago
Requests
Last updated 2 years ago.
0

You can use the File facade to get the contents of the file

$contents = File::get($filename);

Where $filename is the path to the file. Make sure that the file is readable.

Also, I'm sure this is just a project, but XML is a little old school. You may want to take a look at JSON - similar to xml and Laravel handles it really well.

Hope it helps.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.