mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-16 16:37:47 +00:00
refactor: qr-code filter
This commit is contained in:
parent
e660da46fb
commit
33b1083770
4 changed files with 174 additions and 22 deletions
24
app/Facades/QrCode.php
Normal file
24
app/Facades/QrCode.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @method static \App\Services\QrCodeService format(string $format)
|
||||
* @method static \App\Services\QrCodeService size(int $size)
|
||||
* @method static \App\Services\QrCodeService errorCorrection(string $level)
|
||||
* @method static string generate(string $text)
|
||||
*
|
||||
* @see \App\Services\QrCodeService
|
||||
*/
|
||||
class QrCode extends Facade
|
||||
{
|
||||
/**
|
||||
* Get the registered name of the component.
|
||||
*/
|
||||
protected static function getFacadeAccessor(): string
|
||||
{
|
||||
return 'qr-code';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue