Showing 10 of 1,204 results.

Passing Data to PHP Anonymous Functions

…array_filter ( $ myArray , function ( $ value ) use ( $ valueToCheckAgainst ) { 12 return $ value != $ valueToCheckAgainst ; 13 } ) ; That's all we have to do to make a variable available to our anonymous function when we cannot alter the number...

Best Practices for Securing Your Development Projects

In today's technology-driven world, data breaches and cyberattacks are increasing dramatically. According to CheckPoint Research, cybercrimes increased by 38% in 2022 as compared to the previous year. Therefore, it's important for developers to...

Laravel String Helper Function: equals

…icles: http://php.net/manual/en/function.hash-equals.php, https://en.wikipedia.org/wiki/Time_complexity#Constant_time, http://blog.ircmaxell.com/2014/11/its-all-about-time.html,...

Introduction & Installation

Documentation Search provides a custom Statamic search provider focused on making it easier to index documentation-heavy websites where each entry may have multiple sections that should be indexed separately.Documentation Search may be installed...

Example Use | Laravel 5: Adding Elements to the Array with add

Consider the following code snippet: 1 use Illuminate \ Support \ Arr ; 2 3 $ myArray = [ 4 ' animal ' => ' Araripe Manakin ' , 5 ' plant ' => ' Pineland Wild Petunia ' 6 ] ; 7 8 $ myArray = Arr :: add ( 9 $ myArray , 10 ' insect ' , 11 '...

Creating Versions | Managing Projects and Versions

…is displayed on the site in the version selection, in the case of multiple versions. The version name should be short and representative of the version you wish to document. Tip : Try not to make versions too narrowly scoped. For example, having...

Intervals | Laravel String Pluralization

…te an interval for all numbers between one and ten, including numbers one and ten: 1 [1,10] The following example would not allow the numbers one and ten: 1 ]1,10[ As shown in the above examples, the endpoints (the two numbers) of the interval...

Filter Search