Skip to content

Commit edf00b0

Browse files
committed
Adding Files
1 parent eb68f55 commit edf00b0

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

composer.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "pushmix/laravel-web-notification",
3+
"description": "Pushmix Web Notifications",
4+
"authors": [
5+
{
6+
"name": "Alexander",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"require": {
11+
"laravel/framework": ">=5.5",
12+
},
13+
"autoload": {
14+
"psr-4": {
15+
"Pushmix\\WebNotification\\": "src/"
16+
}
17+
},
18+
"extra": {
19+
"laravel": {
20+
"providers": [
21+
"Pushmix\\WebNotification\\PushmixServiceProvider"
22+
],
23+
"aliases": {
24+
"Pushmix": "Pushmix\\WebNotification\\PushmixFacade"
25+
}
26+
}
27+
}
28+
}

config/pushmix.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
return [
3+
4+
'subscription_id' => env('PUSHMIX_SUBSCRIPTION_ID', ''),
5+
6+
];

src/PushmixFacade.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Pushmix\WebNotification;
4+
5+
use \Illuminate\Support\Facades\Facade;
6+
7+
class PushmixFacade extends Facade {
8+
9+
protected static function getFacadeAccessor() {
10+
return 'pushmix';
11+
}
12+
}

src/PushmixServiceProvider.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Pushmix\WebNotification;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
7+
class PushmixServiceProvider extends ServiceProvider {
8+
9+
protected $defer = true;
10+
11+
public function boot() {
12+
13+
\Log::info('here');
14+
$this->publishes([
15+
__DIR__.'/../config/pushmix.php' => config_path('pushmix.php'),
16+
], 'pushmix');
17+
}
18+
19+
public function register() {
20+
21+
}
22+
23+
public function provides() {
24+
return ['pushmix'];
25+
}
26+
}

0 commit comments

Comments
 (0)