Showing 10 of 2,133 results.

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...

Example Use | Laravel 5: String Translation Public API

In the following example, we will extend the MessageSelector to return always return the same string when resolving a translation line using the choice and transChoice methods: 1 <?php 2 3 use Illuminate \ Translation \ MessageSelector ; 4 5 class...

Laravel Collection Static API: make

make($items = []) The make static method creates a new instance of a collection with the provided $items (assuming that the provided $items is in itself not an instance of Collection ). The following code sample highlights the usage of the make...

Default Comment Variables | Default Variables

The following table lists all of the variables that Meerkat provides your templates: Variable Description {{ internal_content_truncated }} A boolean value indicating if Meerkat forcefully truncated the comment's content. {{ id }} The comment's...