for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Appvise\AppStoreNotifications;
use Illuminate\Support\ServiceProvider;
class NotificationsServiceProvider extends ServiceProvider
{
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/appstore-server-notifications.php' => config_path('appstore-server-notifications.php'),
], 'config');
}
if (! class_exists('CreateAppleNotificationsTable')) {
$timestamp = date('Y_m_d_His', time());
__DIR__.'/../database/migrations/create_apple_notifications_table.php.stub' => database_path("migrations/{$timestamp}_create_apple_notifications_table.php"),
], 'migrations');
$this->loadRoutesFrom(__DIR__.'/routes.php');
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/appstore-server-notifications.php', 'appstore-server-notifications');