Created
April 18, 2020 16:43
-
-
Save TiagoSilvaPereira/c384e20fcd4ed47c18cd4ee247f010ac to your computer and use it in GitHub Desktop.
UserController 01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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