Showing 10 of 2,055 results.
We can use the @param directive to define which additional parameters our partial accepts. When we do this, Antlers Toolbox will add these extra parameters to the auto-complete suggestions list. The format for adding parameter names is: 1 @param...
The signature of the finish method is: 1 public static function finish ( 2 $ value , 3 $ cap 4 ) ;
The str_finish function is a shortcut to calling Str::finish . This function is declared in the global namespace.
The signature of the pull method is: 1 public static function pull ( 2 & $ array , 3 $ key , 4 $ default = null 5 ) ;
The array_pull function is a shortcut to calling Arr::pull . This function is declared in the global namespace.
The signature of the snake method is: 1 public static snake ( 2 $ value , 3 $ delimiter = ' _ ' 4 ) ;
The snake_case function is a shortcut to calling Str::snake . This function is declared in the global namespace.
The ends_with function is a shortcut to calling Str::endsWith . This function is declared in the global namespace.
The following examples highlight the basic usage of the replaceLast method. The results of the method call will appear above the call as a comment. 1 use Illuminate \ Support \ Str ; 2 3 // Hello! Goodbye! 4 Str :: replaceLast ( ' Hello ' , '...