feat: Complete user profile section and update the navbar and add routs for profile
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ProfileController extends Controller
|
||||
{
|
||||
//
|
||||
public function index()
|
||||
{
|
||||
$user = auth()->user();
|
||||
$registerTime = verta($user->created_at)->format('Y/m/d');
|
||||
return view('dashboard.profile' , compact('user' , 'registerTime'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user