Showing 7 of 1,216 result(s)
In version 5.4, Laravel added the concept of "macro mixins": a way to define and group related macro methods and utility functions into a class and then inject, or mix in all of the class methods as macro methods to any class that utilizes the...
The hasMacro method is used to determine if a given class has a macro with the name $macro defined. It returns true if the $macro is found, otherwise it returns false .The signature of the hasMacro method is:With a fresh Laravel installation, the...
…iable would contain the value 0 . The following code example shows how to use the min function when specifying a $key : After the above code has executed the $min variable would contain the value 5.0 and the $minName variable would contain the...
…scheduler also provides convenient methods for pinging URLs before or after a task has executed. The methods to do so are pingBefore($url) and pingAfter($url) . These methods internally use the Guzzle HTTP library . This library is not included...
…of method call will appear above the method call as a comment. Line 11 in the above code examples could possible seem confusing at first. The method call returns true even though there is no es locale by default. The method call returns true...
The Laravel Mix manifest directory can be changed by supplying a value for the $manifestDirectory parameter. The manifest directory should contain the mix-manifest.json file, which contains a mapping of the asset paths and the versioned path...
…od chaining. Another way to think of this functions behavior is that it allows you to specify and fix the return value of a series of method calls, regardless of what methods are called within the internal block. The tap helper function was added...
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.