我在返回语句的控制器中遇到以下错误
不允许对“关闭”进行序列化
检查了与Google搜索不同的想法,但仍无法解决。
public static function user_apply_job($jobid)
{
if (Auth::check()) {
$authid = Auth::id();
//Check valid total credits
$total_credits = 0; //Initializing variable
$total_credits = PostsController::get_allcredits();
$message = "Total Credits are" . $total_credits;
echo "<script type='text/javascript'>alert('$message');</script>";
if (($total_credits - 4) < 0) {
return view('users.buycredits_prof');
}
.....
}
}
无法修复此序列化错误。请帮忙解决此问题。