feat: phase 0 foundation — InsForge REST client, config, env wiring, dev account

This commit is contained in:
sean
2026-08-25 17:31:29 +07:00
parent 8c01282084
commit 046cefc56c
8 changed files with 233 additions and 5 deletions
+11 -1
View File
@@ -2,6 +2,8 @@
namespace App\Providers;
use App\Services\InsForge\InsForgeClient;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -11,7 +13,15 @@ class AppServiceProvider extends ServiceProvider
*/
public function register(): void
{
//
$this->app->singleton(InsForgeClient::class, function (Application $app) {
$config = $app->make('config')->get('insforge');
return new InsForgeClient(
$config['base_url'],
$config['api_key'],
$config['timeout'],
);
});
}
/**