Showing 10 of 2,044 results.

Laravel Application Helper Function: redirect

redirect($to = null, $status = 302, $headers = [], $secure = null) The redirect helper function is a versatile helper function. The $to parameter is defined with a default value of null . When $to is null , the redirect function by default will...

Laravel 5: Getting the Current Date and Time With now

…arbon instance initialized to the current date and time. The now function accepts an optional timezone parameter to adjust the timezone of the returned date.The signature of the now function is: 1 function now ( 2 $ tz = null 3 ) ;The following...

getText | Text Extraction

Returns the original document text between two character offsets. Argument Description $startOffset The start offset. $endOffset The end offset. 1 <?php 2 3 public function getText ( int $ startOffset , 4 int $ endOffset ) : string ; Example Use 1...

getWordAtOffset | Text Extraction

…ment at the provided character offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2 3 public function getWordAtOffset ( int $ offset , 4 array $ chars = [ ' - ' ] ) : string ;...

getWordRightAtOffset | Text Extraction

…the word at the provided offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2 3 public function getWordRightAtOffset ( int $ offset , 4 array $ chars = [ ' - ' ] ) : string ;...

getLineExcerpt | Text Extraction

…was extracted from. Argument Description $lineNumber The target line number. $radius The number of desired lines surrounding the target line number. 1 <?php 2 3 public function getLineExcerpt ( int $ lineNumber , 4 int $ radius = 2 ) : array ;...

Type | Open Graph Metadata

The type method queues a <meta property="og:type" content="..."> tag. By default it sets the type to website . 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 Metadata :: openGraph ( ) -> type ( ) ; 6 Metadata...

Image Asset | Open Graph Metadata

The imageAsset helper method accepts an Asset instance and generates the following meta tags based on the asset's information: 1 <meta name="image" property="og:image" content="..."> 2 <meta property="og:image:width" content="..."> 3 <meta...