make class configurable

This commit is contained in:
freek 2018-12-03 15:10:39 +01:00
parent 54e1b291e6
commit ea6db1b336
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ class WebsocketStatisticsEntriesController
'api_message_count' => 'required|integer',
]);
WebSocketsStatisticsEntry::create($validatedAttributes);
$webSocketsStatisticsEntryModelClass = config('websockets.statistics_model');
$webSocketsStatisticsEntryModelClass::create($validatedAttributes);
return 'ok';
}