2
Ich habe eine PHP-Datei auf holiday/app/Console/Commands/myCommand.php
befindet mit:Wie finde ich eine bestimmte Datei in einer Laravel-Anwendung?
namespace Holiday\Console\Commands;
$bob = file_get_contents('Storage/data/BE.json');
und es funktioniert.
jedoch in holiday/app/Http/Controllers/holidayController.php
ich habe:
namespace Holiday\Http\Controllers;
$bob = file_get_contents('Storage/data/BE.json');
aber ich bekomme
file_get_contents(Holiday/Storage/data/BE.json): failed to open stream:
No such file or directory
Weiß jemand, warum das so ist?