laravel file_get_contents of a route get no response

我与影子孤独终老i 提交于 2019-12-05 23:59:42

You're not able to use file_get_contents on a laravel route because the laravel routes aren't actual paths to the view file.

You can tell because the your view isn't stored in the folder de/playlist/raw, it's stored in app/views/pathtoyourrawview.

I haven't tried it, but I'm assuming you can capture your view's code into a variable by using:

$html = View::make('rawPlaylist')->render();

Basically, instead of returning your View::make result you write it to a variable.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!