Welcome Guest, Not a member yet? Register   Sign In
How to stop setPrefix() ?

The DBprefix has been set on ".env"
how to set DBprefix just once?
in one method/function I have
the following code:

$table = $db->prefixTable('oldtable');

$builder = $db->table($table);
// get from oldtable with no prefix

// now I want to use model (UserModel) ...
// the prefix is set by .env, but now replace by setPrefix() above.
$userMeta = new UserMeta();
$metaBuilder = $userMeta->builder();

Theme © iAndrew 2016 - Forum software by © MyBB