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?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/299Rw5Q
via IFTTT

Aucun commentaire:

Enregistrer un commentaire