AccountController.php 437 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Auth, Cache;
  5. use App\{Notification, Profile, User};
  6. class AccountController extends Controller
  7. {
  8. public function __construct()
  9. {
  10. $this->middleware('auth');
  11. }
  12. public function notifications(Request $request)
  13. {
  14. $user = Auth::user();
  15. $profile = $user->profile;
  16. return view('account.activity', compact('profile'));
  17. }
  18. }