|
|
@@ -3,6 +3,8 @@
|
|
3
|
3
|
namespace App\Providers;
|
|
4
|
4
|
|
|
5
|
5
|
use AbdulmajeedJamaan\FilamentTranslatableTabs\TranslatableTabs;
|
|
|
6
|
+use Illuminate\Support\Facades\App;
|
|
|
7
|
+use Illuminate\Support\Facades\URL;
|
|
6
|
8
|
use Illuminate\Support\ServiceProvider;
|
|
7
|
9
|
|
|
8
|
10
|
class AppServiceProvider extends ServiceProvider
|
|
|
@@ -20,6 +22,9 @@ class AppServiceProvider extends ServiceProvider
|
|
20
|
22
|
*/
|
|
21
|
23
|
public function boot(): void
|
|
22
|
24
|
{
|
|
|
25
|
+ if (App::environment('production')) {
|
|
|
26
|
+ URL::forceScheme('https');
|
|
|
27
|
+ }
|
|
23
|
28
|
TranslatableTabs::configureUsing(function (TranslatableTabs $component) {
|
|
24
|
29
|
$component
|
|
25
|
30
|
// locales labels
|