xalatechnologies/consultant-bot

Laravel的顾问机器人包

v1.5.0 2024-09-23 10:52 UTC

This package is auto-updated.

Last update: 2024-09-23 10:52:49 UTC


README

ConsultantBot 是一个为咨询服务而设计的 Laravel 聊天机器人包。它提供动态服务选项和本地化对话。

安装

您可以通过composer安装此包

composer require xalatechnologies/consultant-bot

## Database Setup

Please ensure that the `services` table exists in your database. You can create the migration in your main project like this:

```bash
php artisan make:migration create_services_table

Schema::create('services', function (Blueprint $table) {
    $table->id();
    $table->string('title_en');        // English title
    $table->string('title_nb');        // Norwegian title
    $table->text('description_en');    // English description
    $table->text('description_nb');    // Norwegian description
    $table->timestamps();
});

use Illuminate\Database\Eloquent\Model;