mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Add AccountController
This commit is contained in:
parent
095b23ac78
commit
e1faa17bd5
1 changed files with 22 additions and 0 deletions
22
app/Http/Controllers/AccountController.php
Normal file
22
app/Http/Controllers/AccountController.php
Normal 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'));
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue