Skip to content

Instantly share code, notes, and snippets.

@cesjam7
Created June 17, 2023 06:49
Show Gist options
  • Save cesjam7/52fbe2d39ce35ab098f0a107f13cb801 to your computer and use it in GitHub Desktop.
Save cesjam7/52fbe2d39ce35ab098f0a107f13cb801 to your computer and use it in GitHub Desktop.
fixed https in assets laravel
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultstringLength(191);
\URL::forceScheme('https');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment