<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class TestControllers extends Controller
{
//
public function test()
{
$qctypes = DB::select('select * from QASYS.QC_TYPE_MASTER');
return view('welcome', compact('qctypes'));
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class TestControllers extends Controller
{
//
public function test()
{
$qctypes = DB::select('select * from QASYS.QC_TYPE_MASTER');
return view('welcome')->with($qctypes);
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class TestControllers extends Controller
{
//
public function test()
{
$users=User::get();
// dd($users)
return view('welcome', compact('users'));
}
}