laravel notification database 1

laravel notification database

php artisan notifications:table

Here is what the above code is Doing:
1. We are creating a new notification class called ThreadWasUpdated.
2. We are overriding the toMail method to send an email to the user.
3. We are overriding the toArray method to return an array of data that will be passed to the view.
4. We are creating a new view called thread_updated.blade.php.
5. We are creating a new table called notifications.

Similar Posts