Skip to content

mohamadmurad/laravel-telegram-report-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravelTelegramReport

Easy Send Activity For Any Model To Your Telegram

Documentation

install the package via composer

composer require mohamadmurad/laravel-telegram-report

Config file

This package publishes a config/telegram-report.php file. If you already have a file by that name, you must rename or remove it, as it will conflict with this package. You could optionally merge your own values with those required by this package, as long as the keys that this package expects are present. See the source file for more details telegram-report.php

Publish the config/telegram-report.php config file with:

php artisan telegram-report:install

Add Configration data to your .env file see how to create bot

TELEGRAM_TOKEN="Token for your telegram bot"  
TELEGRAM_CHAT_ID ="your account id in telegram"

Add package trait to any model you want to get report about it example :

use mohamadmurad\LaravelTelegramReport\Traits\HasTelegramReports;

class User extends Authenticatable
{
    use HasTelegramReports;
....

}

the report send after create , update or delete any record in this model

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%