Support the ongoing development of →
Last updated 2 years ago.

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.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.