Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Dec 21, 2024
1 parent a42230f commit 9cd06db
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Providers;

use Illuminate\Support\Facades\Http;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand All @@ -12,15 +11,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
Http::macro('forge', function () {
return Http::withHeaders([
'Authorization' => 'Bearer '.config('forge.token'),
'Accept' => 'application/json',
'Content-Type' => 'application/json',
])->withUrlParameters(['serverId' => config('forge.server')])
->baseUrl('https://forge.laravel.com/api/v1')
->throw();
});
//
}

/**
Expand Down

0 comments on commit 9cd06db

Please sign in to comment.