Initial commit

This commit is contained in:
Kwesi Banson Jnr
2026-08-04 14:50:01 +00:00
commit 2cfcfade4e
1605 changed files with 499334 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Libs\Ntfysender;
use Opcodes\LogViewer\Facades\LogViewer;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//\Schema::defaultStringLength(191);
// $monolog = \Log::getMonolog();
//$monolog = \Log::getLogger();
//new --- > xoxp-677819906294-675678554016-693747277911-5166bcbb9a5fc3d5434b42a10c4d358a
//clickml_erp_ntfy
//click_erp_notify
// $slackHandler = new \Monolog\Handler\SlackHandler('xoxp-677819906294-675678554016-693747277911-5166bcbb9a5fc3d5434b42a10c4d358a', '#clickml_erp_ntfy', 'Monolog', true, null, \Monolog\Logger::ERROR);
// $slackHandler = new \Monolog\Handler\SlackHandler('xoxp-677819906294-675678554016-693747277911-5166bcbb9a5fc3d5434b42a10c4d358a', '#clickml_erp_ntfy', 'Monolog', true, null, \Monolog\Logger::INFO);
// $slackHandler = new \Monolog\Handler\SlackHandler('xoxp-677819906294-675678554016-693747277911-5166bcbb9a5fc3d5434b42a10c4d358a', '#clickml_erp_ntfy', 'Monolog', true, null, \Monolog\Logger::DEBUG);
// $ntfy_handler = new Ntfysender(\Monolog\Logger::ERROR);
// $ntfy_handler = new Ntfysender(\Monolog\Logger::INFO);
// $ntfy_handler = new Ntfysender(\Monolog\Logger::DEBUG);
// dump($ntfy_handler);
// $monolog->pushHandler($ntfy_handler);
LogViewer::auth(function ($request) {
// return true to allow viewing the Log Viewer.
return true;
});
}
}