Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.41 KB

facades.md

File metadata and controls

64 lines (42 loc) · 1.41 KB

Laravel Lang Publisher / Main Page / Features / Facades

Facades

Perhaps the facades will be useful to you:

Locales

use Helldar\LaravelLangPublisher\Facades\Locales;

// List of available locations.
Locales::available(): array

// List of installed locations.
Locales::installed(): array

// Retrieving a list of protected locales.
Locales::protects(): array

// Getting a complete list of available localizations.
Locales::all(): array;

// Checks if a language pack is installed.
Locales::isAvailable(string $locale): bool

// The checked locale protecting.
Locales::isProtected(string $locale): bool

// Checks whether it is possible to install the language pack.
Locales::isInstalled(string $locale): bool

// Getting the default localization name.
Locales::getDefault(): string

// Getting the fallback localization name.
Locales::getFallback(): string

Packages

use Helldar\LaravelLangPublisher\Facades\Packages;

// Returns a sorted list of plugins identified for processing.
Packages::get(): array

// Returns the count of processable plugins.
Packages::count(): int

Plugins

use Helldar\LaravelLangPublisher\Facades\Plugins;

// Returns a sorted list of plugins identified for processing.
Plugins::get(): array

// Returns the count of plugins.
Plugins::count(): int