Я работаю над проектом с двумя типами пользователей: «vendors» в (vendors_table) и «Customers» (Customers_table). Моя цель - соединить два типа пользователей с личным чатом.
Я пытался просмотреть несколько видео и документации по Pusher, но документация, которую я нашел, была только для таблицы одного пользователя. (По умолчанию make:auth
)
таблица клиентов
Schema::create('customers', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('user_type', 15)->default('customer');
$table->string('customer_first_name', 30);
$table->string('customer_last_name', 30);
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
таблица поставщиков
Schema::create('vendors', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('user_type', 15)->default('vendor');
$table->string('vendor_first_name', 30);
$table->string('vendor_last_name', 30);
$table->string('email')->unique();
$table->string('password');
$table->string('vendor_type', 25);
$table->timestamp('approved_at')->nullable();
$table->timestamp('blacklisted_at')->nullable();
$table->rememberToken();
$table->timestamps();
});
Моя цель - соединить две таблицы в приватную беседу.