Skip to content

Commit

Permalink
Adding Files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpechkarev committed Oct 20, 2018
1 parent eb68f55 commit edf00b0
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "pushmix/laravel-web-notification",
"description": "Pushmix Web Notifications",
"authors": [
{
"name": "Alexander",
"email": "alexpechkarev@gmail.com"
}
],
"require": {
"laravel/framework": ">=5.5",
},
"autoload": {
"psr-4": {
"Pushmix\\WebNotification\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Pushmix\\WebNotification\\PushmixServiceProvider"
],
"aliases": {
"Pushmix": "Pushmix\\WebNotification\\PushmixFacade"
}
}
}
}
6 changes: 6 additions & 0 deletions config/pushmix.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
return [

'subscription_id' => env('PUSHMIX_SUBSCRIPTION_ID', ''),

];
12 changes: 12 additions & 0 deletions src/PushmixFacade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Pushmix\WebNotification;

use \Illuminate\Support\Facades\Facade;

class PushmixFacade extends Facade {

protected static function getFacadeAccessor() {
return 'pushmix';
}
}
26 changes: 26 additions & 0 deletions src/PushmixServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Pushmix\WebNotification;

use Illuminate\Support\ServiceProvider;

class PushmixServiceProvider extends ServiceProvider {

protected $defer = true;

public function boot() {

\Log::info('here');
$this->publishes([
__DIR__.'/../config/pushmix.php' => config_path('pushmix.php'),
], 'pushmix');
}

public function register() {

}

public function provides() {
return ['pushmix'];
}
}

0 comments on commit edf00b0

Please sign in to comment.