for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Joy2362\PhpTimezone;
use Illuminate\Support\ServiceProvider;
class PhpTimeZoneServiceProvider extends ServiceProvider
{
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/./config/config.php' => $this->app->configPath('Timezone.php')
], 'config');
}
public function register()
$this->mergeConfigFrom(__DIR__.'/config/config.php', 'Timezone');
$this->app->bind('TimeZoneService', function () {
return new TimeZoneService();
});