You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
add Laravel facade
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,10 @@
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Flasher\\Laravel\\FlasherServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"Noty": "Flasher\\Noty\\Laravel\\Facade\\Noty"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,10 @@
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Flasher\\Noty\\Laravel\\FlasherNotyServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"Noty": "Flasher\\Laravel\\Facade\\Flasher"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,10 @@
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Flasher\\Notyf\\Laravel\\FlasherNotyfServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"Notyf": "Flasher\\Notyf\\Laravel\\Facade\\Notyf"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,10 @@
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Flasher\\SweetAlert\\Laravel\\FlasherSweetAlertServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"SweetAlert": "Flasher\\SweetAlert\\Laravel\\Facade\\SweetAlert"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,10 @@
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Flasher\\Toastr\\Laravel\\FlasherToastrServiceProvider"
|
||||
]
|
||||
],
|
||||
"aliases": {
|
||||
"Toastr": "Flasher\\Toastr\\Laravel\\Facade\\Toastr"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
Reference in New Issue
Block a user