Skip to content

Commit

Permalink
feat: create base helper facade
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 18, 2025
1 parent 5433a7b commit 2a83961
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/Facades/Base/BaseHelper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php

namespace CSlant\Blog\Core\Facades\Base;

use Botble\Base\Facades\BaseHelper as BotbleBaseHelper;

/**
* @method static string formatTime(\Carbon\CarbonInterface $timestamp, string|null $format = 'j M Y H:i', bool $translated = false)
* @method static string|null formatDate(\Carbon\CarbonInterface|string|int|null $date, string|null $format = null, bool $translated = false)
* @method static string|null formatDateTime(\Carbon\CarbonInterface|string|int|null $date, string|null $format = null, bool $translated = false)
* @method static string humanFilesize(float $bytes, int $precision = 2)
* @method static mixed getFileData(string $file, bool $convertToArray = true)
* @method static bool saveFileData(string $path, array|string|null $data, bool $json = true)
* @method static string jsonEncodePrettify(array|string|null $data)
* @method static array scanFolder(string $path, array $ignoreFiles = [])
* @method static string getAdminPrefix()
* @method static string getAdminMasterLayoutTemplate()
* @method static string siteLanguageDirection()
* @method static bool isRtlEnabled()
* @method static string adminLanguageDirection()
* @method static bool isHomepage(string|int|null $pageId = null)
* @method static string|null getHomepageId()
* @method static bool isJoined(\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query, string $table)
* @method static array availableRichEditors()
* @method static string getRichEditor()
* @method static string|null removeQueryStringVars(string|null $url, array|string $key)
* @method static string cleanEditorContent(string|null $value)
* @method static array|string getPhoneValidationRule(bool $asArray = false)
* @method static array|string getZipcodeValidationRule(bool $asArray = false)
* @method static \Illuminate\Support\Collection sortSearchResults(\Illuminate\Support\Collection|array $collection, string $searchTerms, string $column)
* @method static array getDateFormats()
* @method static array|string|null clean(array|string|null $dirty, array|string|null $config = null)
* @method static \Illuminate\Support\HtmlString html(array|string|null $dirty, array|string|null $config = null)
* @method static string hexToRgba(string $color, float $opacity = 1)
* @method static array hexToRgb(string $color)
* @method static \Botble\Base\Helpers\BaseHelper iniSet(string $key, string|int|null $value)
* @method static \Botble\Base\Helpers\BaseHelper maximumExecutionTimeAndMemoryLimit()
* @method static array|string|null removeSpecialCharacters(string|null $string)
* @method static string getInputValueFromQueryString(string $name)
* @method static string|null cleanShortcodes(string|null $content)
* @method static string|null stringify($content)
* @method static string getGoogleFontsURL(string|null $path = null)
* @method static mixed googleFonts(string $font, bool $inline = true)
* @method static bool hasDemoModeEnabled()
* @method static void logError(\Throwable $throwable)
* @method static string getDateFormat()
* @method static string getDateTimeFormat()
* @method static string joinPaths(array $paths)
* @method static bool hasIcon(string|null $name)
* @method static string renderIcon(string $name, string|null $size = null, array $attributes = [], bool $safe = false)
* @method static string renderBadge(string|null $label, string $color = 'primary', array $attributes = [], string|null $icon = null)
* @method static string cleanToastMessage(string $message)
* @method static mixed getHomepageUrl()
* @method static array getFonts()
*
* @see \Botble\Base\Helpers\BaseHelper
*/
class BaseHelper extends BotbleBaseHelper
{
}

0 comments on commit 2a83961

Please sign in to comment.