PHP code example of tripteki / laravelphp-notification
1. Go to this page and download the library: Download tripteki/laravelphp-notification library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tripteki / laravelphp-notification example snippets
use Tripteki\Notification\Contracts\Repository\Admin\INotificationRepository as INotificationAdminRepository;
use Tripteki\Notification\Contracts\Repository\INotificationRepository;
$notificationAdminRepository = app(INotificationAdminRepository::class);
// $notificationAdminRepository->get("..."); //
// $notificationAdminRepository->all(); //
$repository = app(INotificationRepository::class);
// $repository->setUser(...); //
// $repository->getUser(); //
// $repository->markAsRead("..."); //
// $repository->clear("..."); //
// $repository->all(); //
php artisan vendor:publish --tag=tripteki-laravelphp-notification-migrations
php artisan migrate
php artisan vendor:publish --tag=tripteki-laravelphp-notification-tests