make class configurable
This commit is contained in:
parent
54e1b291e6
commit
ea6db1b336
|
|
@ -17,7 +17,9 @@ class WebsocketStatisticsEntriesController
|
|||
'api_message_count' => 'required|integer',
|
||||
]);
|
||||
|
||||
WebSocketsStatisticsEntry::create($validatedAttributes);
|
||||
$webSocketsStatisticsEntryModelClass = config('websockets.statistics_model');
|
||||
|
||||
$webSocketsStatisticsEntryModelClass::create($validatedAttributes);
|
||||
|
||||
return 'ok';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue