Showing 10 of 1,322 results.

isFatal | Parser Errors

…ompiling the final PHP for a given template. Some parser generated errors are "warnings", and will not be reported as fatal errors. These exceptions are: PHP tags not having their final closing, ?>, tag., PHP blocks not being matched to an,...

Replying to Comments | Managing Comments

Comments may be replied to from the Control Panel by selecting the "Reply" option below the comment's content. An inline comment reply form will appear, allowing you to reply directly from the Control Panel. The currently authenticated user...

Specifying a Locale | Laravel 5: String Translation Public API

…Container for a translator instance. 2 $ translator = app ( ' translator ' ) ; 3 4 // Retrieve the validation.array translation line. 5 $ line = $ translator -> get ( ' validation.array ' , [ ] , ' es ' ) ; When we request a translation line from...

Example Use | Laravel 5: String Translation Public API

…validation.array ' , 19 [ ] , ' example ' ) ; You will notice that the value of the $fallbackBehavior invocation has defaulted to the PHP-based language files. This allows developers to use the __ global helper function without having to worry...

Example Use | Laravel 5: String Translation Public API

In the following example, we will check if various translation lines have been defined for different locales. The results of the operation will appear above the method call as either true or false . The following examples will assume the following...

Laravel String Helper Function: limit

The limit method will make sure that the $value is never longer than the given limit. If it is, the length is reduced and the specified end is added as a suffix. This method is useful when displaying output from a user that could be very long and...

Laravel Router Helper Function: delete

…. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route is eventually matched. The $action can be a Closure or a mapping to a controller method. Other advanced options exist, but...