class Workbench extends Workbench

Constants

protected DEFAULT_CORE_BINDINGS

The default cached core workbench bindings.

BUILD_DIRECTORY

The public directory, relative to the public path, that holds the page assets.

Properties

static protected Config|null $cachedConfiguration

The cached test case configuration.

from  Workbench
static protected array<string, null|string> $cachedNamespaces

Cached namespace by path.

from  Workbench
static protected null|Authenticatable>|false $cachedUserModel

The cached test case configuration.

from  Workbench
static array{kernel: array{console?: null|string, http?: null|string}, handler: array{exception?: null|string}} $cachedCoreBindings

The cached core workbench bindings.

from  Workbench

Methods

static void
start(Application $app, Config $config, array $providers = [])

Start Workbench.

static void
startWithProviders(Application $app, Config $config)

Start Workbench with providers.

static void
discoverRoutes(Application $app, Config $config)

Discover Workbench routes.

static void
discoverCommandsRoutes(Application $app)

Discover Workbench command routes.

static Config
configuration()

Resolve the configuration.

static string|null
applicationConsoleKernel()

Get application Console Kernel implementation.

static string|null
applicationHttpKernel()

Get application HTTP Kernel implementation using Workbench.

static string|null
applicationExceptionHandler()

Get application HTTP exception handler using Workbench.

static string|null
applicationUserModel()

Get application User Model.

static string|null
detectNamespace(string $type, bool $force = false)

Detect namespace by type.

static void
flush()

Flush the cached configuration.

static void
flushCachedClassAndNamespaces()

Flush the cached namespace configuration.

static string
applicationPath(array|string $path = '')

Get the path to the application (Hypervel) folder.

static string
hypervelPath(array|string $path = '')

Get the path to the Hypervel application skeleton.

static string
packagePath(array|string $path = '')

Get the path to the package folder.

static string
path(array|string $path = '')

Get the path to the workbench folder.

static mixed
config(string|null $key = null)

Get the available configuration.

static HtmlString
vite(array|string $entrypoints)

Render the Vite tags for the Workbench page assets.

Details

in Workbench at line 83
static void start(Application $app, Config $config, array $providers = [])

internal  
 

Start Workbench.

Parameters

Application $app
Config $config
array $providers

Return Value

void

in Workbench at line 101
static void startWithProviders(Application $app, Config $config)

internal  
 

Start Workbench with providers.

Parameters

Application $app
Config $config

Return Value

void

in Workbench at line 114
static void discoverRoutes(Application $app, Config $config)

Discover Workbench routes.

Parameters

Application $app
Config $config

Return Value

void

in Workbench at line 224
static void discoverCommandsRoutes(Application $app)

Discover Workbench command routes.

Parameters

Application $app

Return Value

void

in Workbench at line 258
static Config configuration()

Resolve the configuration.

Return Value

Config

in Workbench at line 267
static string|null applicationConsoleKernel()

Get application Console Kernel implementation.

Return Value

string|null

in Workbench at line 281
static string|null applicationHttpKernel()

Get application HTTP Kernel implementation using Workbench.

Return Value

string|null

in Workbench at line 295
static string|null applicationExceptionHandler()

Get application HTTP exception handler using Workbench.

Return Value

string|null

in Workbench at line 311
static string|null applicationUserModel()

Get application User Model.

Return Value

string|null

in Workbench at line 334
static string|null detectNamespace(string $type, bool $force = false)

Detect namespace by type.

Parameters

string $type
bool $force

Return Value

string|null

in Workbench at line 376
static void flush()

Flush the cached configuration.

Return Value

void

in Workbench at line 388
static void flushCachedClassAndNamespaces()

Flush the cached namespace configuration.

Return Value

void

at line 36
static string applicationPath(array|string $path = '')

Get the path to the application (Hypervel) folder.

Parameters

array|string $path

Return Value

string

at line 53
static string hypervelPath(array|string $path = '')

Get the path to the Hypervel application skeleton.

Parameters

array|string $path

Return Value

string

See also

Workbench::applicationPath

at line 65
static string packagePath(array|string $path = '')

Get the path to the package folder.

Parameters

array|string $path

Return Value

string

at line 80
static string path(array|string $path = '')

Get the path to the workbench folder.

Parameters

array|string $path

Return Value

string

at line 95
static mixed config(string|null $key = null)

Get the available configuration.

Parameters

string|null $key

Return Value

mixed

at line 112
static HtmlString vite(array|string $entrypoints)

Render the Vite tags for the Workbench page assets.

The application's Vite instance is cloned, keeping its tag and URL customizations while ignoring the application's own hot file and manifest.

Parameters

array|string $entrypoints

Return Value

HtmlString