简体   繁体   English

找不到驱动程序-Laravel

[英]Could not find driver - Laravel

I have successfully uploaded my project on my cpanel. 我已将项目成功上传到我的面板上。 The application is running now but when i try to log in, i get an error, could not find driver . 该应用程序现在正在运行,但是当我尝试登录时,出现错误, could not find driver I have inserted the database credentials in the .env file as well but then, i still get this same error. 我也已在.env文件中插入了数据库凭据,但是随后,我仍然遇到相同的错误。

Is there any another thing i have to do in my env file 我的env文件中还有什么要做的吗

APP_NAME=Laravel
APP_ENV=local
APP_KEY=key
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=user
DB_PASSWORD=pass

BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=database

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=


PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

我认为您的PHP版本给您带来了麻烦,您是否已将其切换到php 5.6或更高版本?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM