Last active
February 20, 2017 17:44
-
-
Save KunalGautam/3991855383b067466f27064ae3fab95a to your computer and use it in GitHub Desktop.
This file contains 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
class UsersController extends Controller | |
{ | |
public function list(){ | |
$users = [ | |
'0' => [ | |
'fname' => 'Kunal', | |
'lname' => 'Gautam', | |
'location' => 'India' | |
], | |
'1' => [ | |
'fname' => 'Anurag', | |
'lname' => 'Upadhaya', | |
'location' => 'USA' | |
], | |
]; | |
return view('users' compact('users)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment