Add AccountController

pull/24/head
Daniel Supernault 2018-05-26 17:00:07 -06:00
rodzic 095b23ac78
commit e1faa17bd5
1 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth, Cache;
use App\{Notification, Profile, User};
class AccountController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function notifications(Request $request)
{
$user = Auth::user();
$profile = $user->profile;
return view('account.activity', compact('profile'));
}
}