(Update) Notifications System

- add paginate
This commit is contained in:
HDVinnie
2018-09-13 22:03:53 -04:00
parent 629993f179
commit 53de143f73
2 changed files with 5 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class NotificationController extends Controller
*/
public function get()
{
$notification = auth()->user()->notifications;
$notification = auth()->user()->notifications()->paginate(25);
return view('notification.notifications', ['notification' => $notification]);
}