Answers for "how to get data from three tables in show to view using laravel"

CSS
0

how to get data from a table in laravel

use IlluminateSupportFacadesDB;

class UserController extends Controller
{
    public function index()
    {
        $users = DB::table('users')->select('id','name','email')->get();

        return view('some-view')->with('users', $users);
    }
}
Posted by: Guest on October-22-2020
-1

laravel list of tables

DB::select('SHOW TABLES')
Posted by: Guest on October-29-2020

Code answers related to "how to get data from three tables in show to view using laravel"

Browse Popular Code Answers by Language