Signature | Laravel 5 Fluent API: The Public API
The signature of the toJson method is: 1 public function toJson ( 2 $ options = 0 3 ) ;
Showing 10 of 2,044 results.
The signature of the toJson method is: 1 public function toJson ( 2 $ options = 0 3 ) ;
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...
…true can be supplied as an argument for the $secure parameter to generate secure (HTTPS) URLs when redirecting: 1 <?php 2 3 return redirect ( ' / ' , 302 , [ ] , true ) ; The URL that would be internally generated and redirected to in the above...
…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...
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...
…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 ;...
…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 ;...
…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 ;...
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...
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...