title: Laravel - how DB class work? Especially, how DB class invokes functions from \Illuminate\Database\Connection?
body: <p>I want to understand how Laravel DB class work. </p>
  
  <p>In DB class there is only one method: getFacadeAccessor(). DB class also inherit  from Facade. </p>
  
  <p>How DB class invokes methods from \Illuminate\Database\Connection? </p>
  
  <pre><code>statement() from \Illuminate\Database\Connection = DB::statement()
  select() from \Illuminate\Database\Connection = DB::select() 
  insert() from \Illuminate\Database\Connection = DB::insert() 
  </code></pre>
  
  <p>etc. </p>
  
  <p>Are reflection used to achieve it?</p>