Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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