mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
feat: chat module
This commit is contained in:
@ -36,23 +36,7 @@ class MensajesDirectos extends BaseResourceController
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
// Modelos
|
||||
$participantModel = model('App\Models\Mensajeria\ParticipanteModel');
|
||||
|
||||
|
||||
$viewData = [
|
||||
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Paises.pais')]),
|
||||
'conversacionesEntity' => new ConversacionEntity(),
|
||||
'usingServerSideDataTable' => true,
|
||||
];
|
||||
|
||||
//$viewData['conversaciones'] = $participantModel->getChatsByUser(auth()->user()->id);
|
||||
$viewData['conversaciones'] = $participantModel->getChatsByUser(639);
|
||||
|
||||
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
||||
|
||||
return view(static::$viewPath . static::$indexRoute, $viewData);
|
||||
return view(static::$viewPath . static::$indexRoute);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user