0
Route::get('/comment/{data}', function($data){
if (Request::ajax()) {
//echo $data; *i checked here echo prints the content of $data but i cant store it in database. i dont know why its not store by using below code plz help me to find error.
$comm = new Data;
$comm->details = Input::get('data');
$comm->save();
}
});
从Ajax调用接收到数据库中的数据我是新来laravel 4 plz帮助我恢复的错误在上面的代码。它返回“500内部服务器错误” –