public function __construct($basePath = null) { date_default_timezone_set(env('APP_TIMEZONE', 'UTC')); $this->basePath = $basePath; $this->bootstrapContainer(); $this->registerErrorHandling(); }
/** * Create a new application instance. * * @param string|null $basePath * @return void */ public function __construct($basePath = null) { parent::__construct($basePath); $this->withFacades(); $this->withEloquent(); $this->registerSingletons(); $this->loadEnvSupport($basePath); }