PHP code example of thecoder / laravel-monolog-telegram
1. Go to this page and download the library: Download thecoder/laravel-monolog-telegram 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/ */
thecoder / laravel-monolog-telegram example snippets
namespace App\Http\Controllers\NewWeb;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use TheCoder\MonologTelegram\Attributes\EmergencyAttribute;
class HomeController extends Controller
{
#[EmergencyAttribute]
public function index(Request $request)
{
//
}
}