fix realtimePort
This commit is contained in:
@@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
use App\Models\PersonalAccessToken;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -16,7 +17,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
|
||||
|
||||
Http::macro('github', function (string $api_url, string|null $github_access_token = null) {
|
||||
if ($github_access_token) {
|
||||
return Http::withHeaders([
|
||||
@@ -30,5 +30,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
])->baseUrl($api_url);
|
||||
}
|
||||
});
|
||||
view()->share('realtimePort', \App\Models\InstanceSettings::realtimePort() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user