我有一个问题,我安装了新的laravel项目,我安装了whatsapp来发送来自我的项目的消息。我在这个链接在这里输入链接描述上执行了步骤
但是当我在我的路线上做这件事的时候
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',发布于 2016-12-07 14:49:05
如此错误所述:could not find driver
确保在服务器上启用了PHP驱动程序。
https://stackoverflow.com/questions/41020424
复制相似问题