This commit is contained in:
Saeed Vaziry
2024-03-24 09:56:34 +01:00
committed by GitHub
parent 884f18db63
commit 4d051330d6
1055 changed files with 14493 additions and 20278 deletions

View File

@ -2,11 +2,11 @@
namespace App\Facades;
use App\Contracts\Notification;
use App\Notifications\NotificationInterface;
use Illuminate\Support\Facades\Facade;
/**
* @method static void send(object $notifiable, Notification $notification)
* @method static void send(object $notifiable, NotificationInterface $notification)
*/
class Notifier extends Facade
{

View File

@ -9,17 +9,19 @@
/**
* Class SSH
*
* @method static \App\Helpers\SSH init(Server $server, string $asUser = null)
* @method static init(Server $server, string $asUser = null)
* @method static setLog(string $logType, int $siteId = null)
* @method static connect()
* @method static exec($commands, string $log = '', int $siteId = null)
* @method static string exec(string $command, string $log = '', int $siteId = null)
* @method static string assertExecuted(array|string $commands)
* @method static string assertExecutedContains(string $command)
* @method static disconnect()
*/
class SSH extends FacadeAlias
{
public static function fake(): SSHFake
public static function fake(?string $output = null): SSHFake
{
static::swap($fake = new SSHFake());
static::swap($fake = new SSHFake($output));
return $fake;
}

19
app/Facades/Toast.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @method static void success(string $message)
* @method static void error(string $message)
* @method static void warning(string $message)
* @method static void info(string $message)
*/
class Toast extends Facade
{
protected static function getFacadeAccessor(): string
{
return 'toast';
}
}