最近在弄一个Laravel+vue的项目,在后台Laravel框架中配置了一个控制器接口,但是前端通过地址访问时总是报“Request failed with status code 500”的错误,而且要是换一个控制器的接口地址访问的话就可以正常获取数据,所以这只是后台接口的编写问题了,无关乎前端。 后来才发现原来我的错误原因是在该接口控制器内编写
I have code that gets a CSV file from a server and parsing that csv file. Locally it works as expected, but when deploying to production I get the following error using both fopen(), file_get_contents() and Laravel Http Client. Failed to open stream: HTT...
Laravel Version: 5.7.19 PHP Version: 7.1.4 Description: I had noted that a few records managed to reach the DB which should not have passed validation. In my form request I have the following withValidator function. public function withV...
Package version: ~2.1.0 Laravel version: 5.1.* Expected behaviour: // Set the title $excel->setTitle('Our new awesome title'); // Chain the setters $excel->setCreator('Maatwebsite') ->setCompany('Maatwebsite'); // Call them separately $e...
The error: Cross-site request forgery validation failed. Required param "state" missing. What is wrong with this? Thanks in advance! put all your route into middleware web SammyKclosed this ascompletedFeb 4, 2016 for anyone interested
this is my client side code: import Echo from "laravel-echo" window.Echo = new Echo({ broadcaster: 'socket.io', host: 'http://localhost:6001', }); window.Echo.private('message-received') .listen('MessageWasReceived', (e) => { console.log(e.statusMessage); }); ...