我在我的laravel 5.3项目中使用了这段代码,但它说它是badcallmethodexception,我发现控制器方法在新版本中不再可用,如何编写此代码? 这是我的代码:控制器方法的替代方案
Route::controller('notifications', 'NotificationController');
该控制器内部有这样的代码:
public function getIndex()
{
return view('notification');
}
public function postNotify(Request $request)
{
$notifyText = e($request->input('notify_text'));
}
为我工作的感谢! –