2023-06-13 20:59:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2024-06-11 20:36:58 +00:00
|
|
|
use Illuminate\Support\Facades\Config;
|
2023-06-13 20:59:16 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2024-06-11 20:36:58 +00:00
|
|
|
use PostHog\PostHog;
|
2023-06-13 20:59:16 +00:00
|
|
|
|
2024-06-11 20:36:58 +00:00
|
|
|
class AppServiceProvider extends ServiceProvider {
|
2023-06-13 20:59:16 +00:00
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
2024-06-11 20:36:58 +00:00
|
|
|
public function register(): void {
|
2023-06-13 20:59:16 +00:00
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*/
|
2024-06-11 20:36:58 +00:00
|
|
|
public function boot(): void {
|
|
|
|
PostHog::init(
|
|
|
|
Config::get('services.posthog.key'),
|
|
|
|
[
|
|
|
|
'host' => 'https://'.Config::get('services.posthog.host')
|
|
|
|
]
|
|
|
|
);
|
2023-06-13 20:59:16 +00:00
|
|
|
}
|
|
|
|
}
|