add Laravel facade

This commit is contained in:
KHOUBZA Younes
2021-05-09 12:22:06 +00:00
parent dc0784a9a6
commit 64bac380d0
12 changed files with 120 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Flasher\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class Flasher extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher';
}
}
+4 -1
View File
@@ -56,7 +56,10 @@
"laravel": {
"providers": [
"Flasher\\Laravel\\FlasherServiceProvider"
]
],
"aliases": {
"Noty": "Flasher\\Noty\\Laravel\\Facade\\Noty"
}
}
},
"config": {
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Flasher\Noty\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class Noty extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher.noty';
}
}
+4 -1
View File
@@ -55,7 +55,10 @@
"laravel": {
"providers": [
"Flasher\\Noty\\Laravel\\FlasherNotyServiceProvider"
]
],
"aliases": {
"Noty": "Flasher\\Laravel\\Facade\\Flasher"
}
}
},
"config": {
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Flasher\Notyf\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class Notyf extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher.notyf';
}
}
+4 -1
View File
@@ -56,7 +56,10 @@
"laravel": {
"providers": [
"Flasher\\Notyf\\Laravel\\FlasherNotyfServiceProvider"
]
],
"aliases": {
"Notyf": "Flasher\\Notyf\\Laravel\\Facade\\Notyf"
}
}
},
"config": {
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Flasher\Pnotify\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class Pnotify extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher.pnotify';
}
}
+4 -1
View File
@@ -55,7 +55,10 @@
"laravel": {
"providers": [
"Flasher\\Pnotify\\Laravel\\FlasherPnotifyServiceProvider"
]
],
"aliases": {
"Pnotify": "Flasher\\Pnotify\\Laravel\\Facade\\Pnotify"
}
}
},
"config": {
@@ -0,0 +1,16 @@
<?php
namespace Flasher\SweetAlert\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class SweetAlert extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher.sweet_alert';
}
}
+4 -1
View File
@@ -56,7 +56,10 @@
"laravel": {
"providers": [
"Flasher\\SweetAlert\\Laravel\\FlasherSweetAlertServiceProvider"
]
],
"aliases": {
"SweetAlert": "Flasher\\SweetAlert\\Laravel\\Facade\\SweetAlert"
}
}
},
"config": {
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Flasher\Toastr\Laravel\Facade;
use Illuminate\Support\Facades\Facade;
class Toastr extends Facade
{
/**
* @inheritdoc
*/
protected static function getFacadeAccessor()
{
return 'flasher.toastr';
}
}
+4 -1
View File
@@ -55,7 +55,10 @@
"laravel": {
"providers": [
"Flasher\\Toastr\\Laravel\\FlasherToastrServiceProvider"
]
],
"aliases": {
"Toastr": "Flasher\\Toastr\\Laravel\\Facade\\Toastr"
}
}
},
"config": {