1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 08:14:10 +00:00

Add AccountController

This commit is contained in:
Daniel Supernault 2018-05-26 17:00:07 -06:00
parent 095b23ac78
commit e1faa17bd5

View file

@ -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'));
}
}