Something went wrong. Try again.
My earliest code I have saved
Something went wrong. Try again.
12345678910111213141516171819202122<?php
namespace ConnectU\Http\Controllers;
use DB;use Auth;use Carbon\Carbon;use ConnectU\Models\User;use ConnectU\Models\Status;use Illuminate\Http\Request;
class ModeratorController extends Controller{ public function home() { # Get all the users from the table 'users' and paginate them by 25 $users = DB::table('users')->paginate(25);
return view('moderator.home')->with('users', $users); # Return the helper dashboard view with the $users variable }}