Wednesday, March 29, 2017

Laravel get file content

Route::get('marquee', function(){
    echo  File::get('\storage\app\marquee.json');
});

I have a json file place inside storage/app

My question is how can I read this content from controller or route?



via Benjamin W

Advertisement