Download app/Providers/AppServiceProvider.php from veela4/gamtest: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/veela4/gamtest/resolve/main/app/Providers/AppServiceProvider.php
- Command line
-
hf download hf://veela4/gamtest/app/Providers/AppServiceProvider.php
-
curl -L -o AppServiceProvider.php https://huggingface.co/veela4/gamtest/resolve/main/app/Providers/AppServiceProvider.php
591 Bytes
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Support\Facades\URL; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register any application services. | |
| */ | |
| public function register(): void | |
| { | |
| // | |
| } | |
| /** | |
| * Bootstrap any application services. | |
| */ | |
| public function boot(): void | |
| { | |
| // Force HTTPS when using ngrok or in production | |
| if (config('app.env') !== 'local' || request()->header('x-forwarded-proto') === 'https') { | |
| URL::forceScheme('https'); | |
| } | |
| } | |
| } | |