Skip to content

Commit ed4da25

Browse files
committed
Merge branch 'release/v0.0.1' into main
2 parents 6caa9c8 + 0f1ff21 commit ed4da25

File tree

6 files changed

+86
-0
lines changed

6 files changed

+86
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git/
2+
.idea/
3+
vendor/
4+
node_modules/
5+
npm-debug.log
6+
package-lock.json

.gitkeep

Whitespace-only changes.

Facades/VaahArtisanFacade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php namespace WebReinvent\VaahLaravel\Facades;
2+
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class VaahArtisanFacade extends Facade {
7+
protected static function getFacadeAccessor() { return 'vaahartisan'; }
8+
}

Helpers/VaahArtisan.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php namespace WebReinvent\VaahLaravel\Helpers;
2+
3+
4+
class VaahArtisan{
5+
6+
public function __construct()
7+
{
8+
9+
die("<hr/>line number=abc");
10+
11+
}
12+
13+
}

VaahLaravelServiceProvider.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php namespace WebReinvent\VaahLaravel;
2+
3+
use Illuminate\Support\Facades\App;
4+
use Illuminate\Support\ServiceProvider;
5+
use WebReinvent\VaahLaravel\Helpers\VaahArtisan;
6+
7+
class VaahLaravelServiceProvider extends ServiceProvider {
8+
9+
/**
10+
* Indicates if loading of the provider is deferred.
11+
*
12+
* @var bool
13+
*/
14+
protected $defer = false;
15+
16+
/**
17+
* Bootstrap the application events.
18+
*
19+
* @return void
20+
*/
21+
public function boot() {
22+
23+
}
24+
25+
/**
26+
* Register the service provider.
27+
*
28+
* @return void
29+
*/
30+
public function register() {
31+
32+
App::bind('vaahartisan',function() {
33+
return new VaahArtisan();
34+
});
35+
36+
}
37+
38+
39+
40+
41+
}

composer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "webreinvent/vaahlaravel",
3+
"description": "Small Laravel Helpers",
4+
"keywords": ["laravel"],
5+
"homepage": "https://www.webreinvent.com",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "pradeep",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"autoload": {
14+
"psr-4": {
15+
"WebReinvent\\VaahLaravel\\": "/"
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)