Created
May 13, 2021 13:56
-
-
Save EmmanuelObua/40e06656bf60f04461c44b2b141f4aed to your computer and use it in GitHub Desktop.
Profile controller
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
<?php | |
/** | |
* ProfileController | |
* | |
* @author Obua Emmanuel <eobua6882@gmail.com> | |
* @copyright 2021 Obua Emmanuel | |
* @link http://www.emmanuelobua.me | |
* @version 1.0.0 | |
* | |
*/ | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\User; | |
use Auth; | |
class ProfileController extends Controller | |
{ | |
public function index() | |
{ | |
$user = User::find(Auth::id()); | |
return view('profile', compact('user')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment