This commit is contained in:
Andras Bacsai committed 2023-05-30 15:52:17 +02:00
1 parent 6e72889294
commit 0f50d1accd
36 files changed
+715 -273

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -18,5 +19,10 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
Http::macro('github', function (string $api_url) {
return Http::withHeaders([
'Accept' => 'application/vnd.github.v3+json'
])->baseUrl($api_url);
});
}
}