App Service Provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
//Add the schema facade | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. | |
* | |
* @return void | |
*/ | |
public function register() | |
{ | |
//Provide migration string() function default value. | |
Schema::defaultStringLength(191); | |
//Register laravel telescope service provider only when the application is in local environment | |
if ($this->app->isLocal()) { | |
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class); | |
$this->app->register(TelescopeServiceProvider::class); | |
} | |
} | |
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ | |
public function boot() | |
{ | |
// | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment