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
Post a Comment