我有一个Laravel应用程序,具有一个具有长序列的底层数据库。我想为用户提供下载JSON格式的数据库的机会。为此,我首先获取记录,然后将它们转换为JSON格式并写入文件。但是,当我将应用程序移动到生产服务器时,它为我提供了 You don't have permission to access /saveJson on this server.
拿起knockout.js,我正尝试使用PHP将数据保存到mysql数据库中(更具体地说,Laravel)。; // right now I'm alerting the data to troubleshoot});// I expect my ajax todata = json_decode(Input::json(), true);
return DB::table('content')->insert($dat