title: How to initialization Table Name use query builder in laravel 7
body: <p>I tried initializing the table name but it got an error.</p>
  
  <p>in this case, I gave initialization to 'a' &amp; 'b' in the table name</p>
  
  <p>So, This my code : </p>
  
  <pre><code>&lt;?php
  
  namespace App;
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Support\Facades\DB;
  use Illuminate\Support\Facades\Schema;
  class Act_admin extends Model
  {
  
      static function showCustomer(){
  
          $query = "a.CUST_CODE, a.CUST_NAME AS CUSTOMER NAME, a.GRADE";
          $data['data'] = DB::table("dummy_db.customer a ")
                              -&gt;leftJoin("dummy_db.agents b", "a.AGENT_CODE", "=", "b.AGENT_CODE")                                                
                              -&gt;select(DB::raw($query))-&gt;paginate(10);
          dd($data);
      }
  }
  </code></pre>
  
  <p>a messages from the error : </p>
  
  <pre><code>Illuminate\Database\QueryException
  SQLSTATE [42000]: Syntax error or access violation: 1103 Incorrect table name 'customer a '
   (SQL: select count(*) as aggregate from `dummy_db`.`customer a ` inner join `dummy_db`.`agents b` on `a`.`AGENT_CODE` = `b`.`AGENT_CODE`)
  </code></pre>