I am new to laravel. I have created a notification in laravel 5.6, I typed php artisan notifications:table, which created a notifications table. I then created a notification file by typing php artisan make:notification NewMessage, this created my notification file "NewMessage.php" inside the Notifications folder. This notification works fine for me.
Now I created another notification file "NewData.php" inside the Notifications folder. But now I want to make a separate notification table for it and connect this table with the new file NewData.php, so that the data meant for this file gets saved in the new database table. Any help is appreciated.
$user->unreadNotifications->filter(function($e) { $e->type == 'registered'})
) – Loek