title: How to create 'yajra/laravel-datatables' with multiple arguments?
body: <p>How to create 'yajra/laravel-datatables' from multiple data sources? Here I want to display multiple tables from different databases.</p>
  
  <pre><code> $data1  = DB::table('schema1.post AS p')
                          -&gt;leftJoin('user AS u','u.id','=','p.user_id')
                          -&gt;select('p.*','u.*')
                          -&gt;get();   
   $data2  = DB::table('schema2.page AS page')
                          -&gt;leftJoin('user AS u','u.id','=','page.user_id')
                          -&gt;select('page.*','u.*')
                          -&gt;get();   
  
    return Datatables::of($data)
              -&gt;addIndexColumn()
              -&gt;make(true);  
  </code></pre>
  
  <p>Here I am confused about how to pass 2 variables to Datatables?
  Here is my script.</p>
  
  <pre><code>var option = $("#Options").DataTable({
        processing: true,
        serverSide: false,
        ajax: "{{route('option')}}",
        columns: [
          {
            data: "user_name",
            name: "user_name",
          },
          {
            data: "type",
            name: "type",
          },
          {
            data: "description",
            name: "description",
  
          },
         });
  
  </code></pre>