I also had this error, so I will just post my comments here. He can always help someone!
It seems that getAfterFilters () is the method that is required for all controllers in L4. If the error says that it is not defined, you probably forgot to extend BaseController in your class.
, BaseController... , .
- . :
Route::get('sse', 'SSE@deamon');
SSE BaseController ( imho)
, , BaseController... :
Route::get('sse', [function() {
SSE::deamon();
}]);
getAfterFilters()!