Showing 10 of 2,055 results.

The Raw PHP Directives | Core Concepts

The last significant difference to bring attention to is how the library's parser and compiler handle Blade's PHP directive. The library's parser will not attempt to locate the @endphp directive if the opening @php directive contains arguments: 1...

5. Conveying Modified Source Versions. | License

…rk must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”., c) You must license the entire work, as...

Prettier 2 Plugin | Formatting

If your project still relies on Prettier 2 you must ensure that you install version 1 of the prettier-plugin-antlers plugin. 1 npm install prettier-plugin-antlers@^1 --save-dev Once the plugin is installed you will need to modify your projects...

Example Use | Laravel 5.5 String Helper Method: contains

1 use Illuminate \ Support \ Str ; 2 3 // These are our $needles we want to check for. 4 $ needles = [ ' a ' , ' p ' , ' l ' , ' e ' , ' s ' ] ; 5 6 // true 7 Str :: contains ( ' apples ' , $ needles ) ; 8 9 // false 10 Str :: contains ( ' APPLES...

5. Conveying Modified Source Versions. | License

…rk must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”., c) You must license the entire work, as...

Installation and Upgrade Guide

To install Meerkat into a Statamic 4 project using Composer , simply run the following command at the root of your project: 1 composer require stillat/meerkatUpgrading your site from Meerkat 2 to Meerkat 3 should be relatively painless for most...

Lambdas as Function Arguments | Lambdas And Closures

…etical scenario, we can be thankful that there is a built in PHP function named array_filter . This function filters elements of an array using a callback function . That callback function will be the lambda function that you pass in as an...