Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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());
|
||||
$this->publishes([
|
||||
__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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user