Last active
January 26, 2018 16:11
-
-
Save de-raaf-media/b94d210787e807a95a1c62efe6b54dbe to your computer and use it in GitHub Desktop.
Laravel: Default controller
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 App\Http\Controllers\Controller; | |
class UserController extends Controller | |
{ | |
/** | |
* Show the profile for the given user. | |
* | |
* @param int $id | |
* @return Response | |
*/ | |
public function show($id) | |
{ | |
$user = User::findOrFail($id); | |
return view('user.profile', compact('user')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment