Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about laravel-notification

Read more about laravel-notification

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - laravel-notification

how to paginate read notifications in Laravel

I got an error related to the pagination of read notifications. Thank you for your help. This is my controller code that gives this error when it runs public function NotificationsRead(User $user) {...
test-img

user16426192

laravel

laravel-8

laravel-controller

laravel-pagination

laravel-notification

Votes: 0

Answers: 2

Latest Answer

You should do $no = Auth::user()->readNotifications()->latest()->paginate(7); In this way you are ordering descending before pagination. Your code orders the result collection created by pag...
test-img

Jack

How to test that a mailable was sent from a notification?

What's the secret of testing a mailable was sent from a notification? Testing the notification: it('does send notification when model is deleted', function() { Notification::fake(); $this->...
test-img

DarkLeafyGreen

laravel

phpunit

laravel-mail

laravel-notification

Votes: 0

Answers: 1

Latest Answer

Regarding using Mail:fake in the context of notifications: It is not a very good way to test because it catches only mails sent using the Mail facade (doesn't intercept mails sent through a notificat...
test-img

DarkLeafyGreen

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved