Welcome Guest, Not a member yet? Register   Sign In
changing the table name with a variable
#1

Code:
class UserModel extends Model
{
    protected $table      = 'users';
    protected $primaryKey = 'id';


Hello, I want to change the table name with a variable, for example the id + _table name of the users coming from the session, how can I do this, thank you.
Reply


Messages In This Thread
changing the table name with a variable - by yildzselim - 12-17-2023, 01:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB