简体   繁体   中英

Laravel SESSION DRIVER file and database

I always encounter this error in my laravel apps.It seems like my app is looking for SESSION table. But my session driver is file.

Error Code: 942 Error Message: ORA-00942: table or view does not exist Position: 29 Statement: select * from (select * from "SESSIONS" where "ID" =:p0) where rownum = 1 Bindings: [ 6FIQK2ZudGtfcRksXb0E9lIJtcq3OcNIsjSWNAU1] (SQL: select * from (select * from "SESSIONS" where "ID" = 6FIQK2ZudGtfcRksXb0E9lIJtcq3OcNIsjSWNAU1) where rownum = 1)

This is the.env configuration

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

Same with the session.php

'driver' => env('SESSION_DRIVER', 'file'),

How to remove this error. Which php file should i edit.

I would try isolating the problem by setting mailtrap SMTP settings and test if emails arrive there. If so, problem is with your SMTP settings. Otherwise, there is something wrong in your code. Please share a peace of code where we can see how you are sending the email.

Here is a guide on setting mailtrap SMTP settings in laravel: https://medium.com/@christianjombo/setting-up-mailtrap-for-laravel-development-313133bb800c

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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