Showing 10 of 2,133 results.

Formatting CLI

The Antlers formatter CLI is an opinionated formatting tool built on top of js-beautify , and is provided as a standalone version of the formatter that ships with the Visual Studio Code extension.

getErrors | The Document Parser

Retrieves a collection of parser errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getErrors ( ) : Collection ;

getFirstError | The Document Parser

Retrieves the first error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ BladeError ; 4 5 public function...

The is:before Filter | The "is" Filters

…llows you to filter comments to those that appear before a certain date. It accepts either a UNIX timestamp, or the date as text input. The following example would return all comments that were submitted to the server before January 1st, 2021:...

Example Use | Laravel 5.5 String Helper Method: snake

Here are a few examples with the result above the function call in comments: 1 use Illuminate \ Support \ Str ; 2 3 // my_words 4 echo Str :: snake ( ' MyWords ' ) ; 5 6 // my-words 7 echo Str :: snake ( ' MyWords ' , ' - ' ) ; 8 9 //...

For Else Validator | The Validate Command

Class : ForElseStructureValidator The for else validator checks for many different types of issues within @forelse blocks, such as: Too many, @empty, directives, Missing, @empty, directive The following template: 1 @forelse ( $ users as $ user ) 2...

API Endpoints | Advanced Reply Forms

The Endpoints static object contains the API endpoints that you can submit to from your site. The default endpoints are: Endpoint Description SubmitComment The API endpoint to POST comment replies to. You might use the endpoints like so (the...