It's an extension kit for our theme https://github.com/hieu-pv/nf-theme
- Installation
- Configuration
- Compile asset file
- Service
- Working with local repository
- Extension Configuration
Add notifications folder in your theme
To add namespace of package with PSR-4, add the following code to your composer.json then run command composer dump-autoload
or composer dump-autoload -o
to optimize
"autoload": {
"psr-4": {
"Vicoders\\Notification\\": "notifications/src/"
}
},
Updating ...
Open
config/app.php
and register the required service provider.
'providers' => [
// .... Others providers
\Vicoders\Notification\NotificationServiceProvider::class
],
Run below command to migrate tables into database. It'll create 2 tables
wp_notify
andwp_user_notify
.
php command migrate
Insert 2 shortcodes where you need
[vc-notify link_more="#"]: Show icon notify, badge and link to redirect to list notify page
[vc-notify-list-page]: List all notifies