Retrieving Results: Retrieving All Rows From A Table

<?php

namespace App\Http\Controllers;

use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    /**
     * Show a list of all of the application's users.
     *
     * @return Response
     */
    public function index()
    {
        $users = DB::table('users')->get();

        return view('user.index', ['users' => $users]);
    }
}

Retrieving Results: Retrieving All Rows From A Table — Structure map

Clickable & Draggable!

Retrieving Results: Retrieving All Rows From A Table — Related pages: