jeudi 30 juin 2016

How to set path to file in Laravel?

I have located file in root directory of Laravel.

From controller I try to get this file like as:

$shipments = json_decode(file_get_contents("Statistics.json"), true);

But I get error.

What correct path to specify for getting file?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire