Before I am passing the table name and its alias directly to my query.
$qry = DB::table('tbl_user as u') ->join ......
But now I have to pass the name of table dynamically.
$this->tableName;
I tried as follow
$qry = DB::table($this->tableName + 'as u')
But it didnot work for me.
Any Help please.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire