【问题标题】:laravel 5.3 and whatsapi could not find driverlaravel 5.3 和 whatsapi 找不到驱动程序
【发布时间】:2016-12-07 23:19:27
【问题描述】:

我有问题,那就是我安装了新的 laravel 项目 我安装了whatsapi 从我的项目发送whatsapp消息.. 我在此链接上执行了步骤 enter link description here

但是当我这样做时我的问题 在我的路线上 喜欢

Route::get('whats',function(){
      // Retrieve user data from database, web service, and so on.
// Dummy method, fake data.
$user = new stdClass;
$user->name = 'Benjamín Martínez Mateos';
$user->phone = '5219512222222';

$message = "Hello $user->name and welcome to our site";

$messages = Whatsapi::send($message, function($send) use ($user)
{
    $send->to($user->phone);




    // Add new text message
    $send->message('Thanks for subscribe');
});
});

我收到此错误:

Whoops, looks like something went wrong. 1/1
PDOException in SqliteMessageStore.php line 23:
could not find driver
in SqliteMessageStore.php line 23
at PDO->__construct('sqlite:C:\whatsapidemo\storage/whatsapi\msgstore-            962799024459.db', null, null, array('2', '2')) in SqliteMessageStore.php line 23
at SqliteMessageStore->__construct('962799024459',

【问题讨论】:

    标签: laravel whatsapi


    【解决方案1】:

    正如此错误所述:could not find driver

    确保您的服务器上启用了 PHP SQLite PDO 驱动程序

    【讨论】:

    • sqllite pdo 已启用,为什么我需要它从 whatsapp 发送无论如何我不能将其更改为 mysql 并从 env 文件获取连接?
    • 服务器显然找不到它,请仔细检查您是否正确。
    猜你喜欢
    • 1970-01-01
    • 2021-11-14
    • 2020-09-11
    • 2016-05-16
    • 2019-11-07
    • 2016-06-10
    • 1970-01-01
    相关资源
    最近更新 更多