Showing 10 of 1,280 results.

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

Fluent and Closures | Laravel Fluent Part Two: The Public API

If we look at the following code example, one might be tempted to say that the value of $message would be Hello, world! , but that would be incorrect: 1 <?php 2 3 $ testObject = new stdClass ; 4 $ testObject -> method = function ( ) { 5 return '...

Filter Search