php - How to create sqlite file in Laravel 5.2 framework? -


i want create sqlite file manually whenever user registered. use

new sqlite3($file_path) 

but laravel keep tell me

class 'app\http\controllers\sqlite3' not found 

please me this. thank very help.

you should use:

new \sqlite3($file_path) 

or put

use sqllite3; 

below

namespace app\http\controllers; 

now trying use sqlite3 current namespace.

you might interested in looking @ how use objects other namespaces , how import namespaces in php


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -