Skip to content

Instantly share code, notes, and snippets.

@EmmanuelObua
Created May 13, 2021 13:56
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 EmmanuelObua/40e06656bf60f04461c44b2b141f4aed to your computer and use it in GitHub Desktop.
Save EmmanuelObua/40e06656bf60f04461c44b2b141f4aed to your computer and use it in GitHub Desktop.
Profile controller
<?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