Skip to content

Commit

Permalink
feat: create slug helper facade
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 8, 2025
1 parent c02b8c2 commit bcd8ea4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/Facades/Base/SlugHelper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace CSlant\Blog\Core\Facades\Base;

use Botble\Slug\Facades\SlugHelper as BaseSlugHelper;

/**
* @method static \Botble\Slug\SlugHelper registerModule(array|string $model, \Closure|string|null $name = null)
* @method static static registering(\Closure $callback)
* @method static \Botble\Slug\SlugHelper removeModule(array|string $model)
* @method static array supportedModels()
* @method static \Botble\Slug\SlugHelper setPrefix(string $model, string|null $prefix, bool $canEmptyPrefix = false)
* @method static \Botble\Slug\SlugHelper setColumnUsedForSlugGenerator(string $model, string $column)
* @method static bool isSupportedModel(string $model)
* @method static \Botble\Slug\SlugHelper disablePreview(array|string $model)
* @method static bool canPreview(string $model)
* @method static \Botble\Base\Contracts\BaseModel|\Botble\Slug\Models\Slug createSlug(\Botble\Base\Contracts\BaseModel $model, string|null $name = null)
* @method static mixed getSlug(string|null $key, string|null $prefix = null, string|null $model = null, $referenceId = null)
* @method static string|null getPrefix(string $model, string $default = '', bool $translate = true)
* @method static string getHelperTextForPrefix(string $model, string $default = '/', bool $translate = true)
* @method static string getHelperText(string $prefix, string|null $postfix = '', string|null $separation = '')
* @method static string|null getColumnNameToGenerateSlug(object|array|string|null $model)
* @method static string getPermalinkSettingKey(string $model)
* @method static bool turnOffAutomaticUrlTranslationIntoLatin()
* @method static string|null getPublicSingleEndingURL()
* @method static string getSettingKey(string $key)
* @method static array getCanEmptyPrefixes()
* @method static \Botble\Slug\SlugCompiler getTranslator()
* @method static array getSlugPrefixes()
* @method static array getAllPrefixes()
*
* @see \Botble\Slug\SlugHelper
*/
class SlugHelper extends BaseSlugHelper
{
}

0 comments on commit bcd8ea4

Please sign in to comment.