Prøv dette
// OPRET MIDLERTIDIG TABEL
$productList = DB::insert( DB::raw( "CREATE TEMPORARY TABLE tempproducts") );
// SLET MIDLERTIDIG TABEL
$dropTable = DB::unprepared( DB::raw( "DROP TEMPORARY TABLE tempproducts" ) );
Prøv dette
// OPRET MIDLERTIDIG TABEL
$productList = DB::insert( DB::raw( "CREATE TEMPORARY TABLE tempproducts") );
// SLET MIDLERTIDIG TABEL
$dropTable = DB::unprepared( DB::raw( "DROP TEMPORARY TABLE tempproducts" ) );