Skip to content

Instantly share code, notes, and snippets.

@TiagoSilvaPereira
Created April 18, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiagoSilvaPereira/c384e20fcd4ed47c18cd4ee247f010ac to your computer and use it in GitHub Desktop.
Save TiagoSilvaPereira/c384e20fcd4ed47c18cd4ee247f010ac to your computer and use it in GitHub Desktop.
UserController 01
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class UserController extends Controller
{
public function index()
{
$users = User::paginate();
return view('users.index', compact('users'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment