DocsCommand
Extends
Properties
$signature string
The name and signature of the console command.
$description string
The console command description.
$help string
The console command help text.
$urlOpener callable|null
The custom URL opener.
$version string|null
The custom documentation version to open.
$systemOsFamily string
The operating system family.
Methods
configure ( ) : void
Configure the current command.
handle ( Factory $http , Repository $cache ) : int
Execute the console command.
Parameters
- $http Factory
- $cache Repository
openUrl ( ) : void
Open the documentation URL.
url ( ) : string
The URL to the documentation page.
page ( ) : string
The page the user is opening.
resolvePage ( ) : string|null
Determine the page to open.
didNotRequestPage ( ) : bool
Determine if the user requested a specific page when calling the command.
askForPage ( ) : string|null
Ask the user which page they would like to open.
askForPageViaCustomStrategy ( ) : string|null
Ask the user which page they would like to open via a custom strategy.
askForPageViaAutocomplete ( ) : string|null
Ask the user which page they would like to open using autocomplete.
guessPage ( $search ) : string|null
Guess the page the user is attempting to open.
section ( $page ) : string|null
The section the user specifically asked to open.
Parameters
- $page string
didNotRequestSection ( ) : bool
Determine if the user requested a specific section when calling the command.
guessSection ( $page ) : string|null
Guess the section the user is attempting to open.
Parameters
- $page string
open ( $url ) : void
Open the URL in the user's browser.
Parameters
- $url string
openViaCustomStrategy ( $url ) : void
Open the URL via a custom strategy.
Parameters
- $url string
openViaBuiltInStrategy ( $url ) : void
Open the URL via the built in strategy.
Parameters
- $url string
sectionsFor ( $page ) : Illuminate\...\Collection
The available sections for the page.
Parameters
- $page string
pages ( ) : Illuminate\...\Collection
The pages available to open.
docs ( ) : Illuminate\...\Collection
Get the documentation index as a collection.
refreshDocs ( ) : void
Refresh the cached copy of the documentation index.
version ( ) : string
Determine the version of the docs to open.
searchQuery ( ) : string
The search query the user provided.
isSearching ( ) : bool
Determine if the command is intended to perform a search.
setVersion ( $version ) : $this
Set the documentation version.
Parameters
- $version string
setUrlOpener ( $opener ) : $this
Set a custom URL opener.
Parameters
- $opener callable|null
setSystemOsFamily ( $family ) : $this
Set the system operating system family.
Parameters
- $family string