Search

Showing 7 of 1,216 result(s)

/blog/2016/12/07/laravel-artisan-tinker-the-doc-command

The doc command can be used to view the documentation for an object, class, constant, method, function or property. It can accept either the function, method, class, etc name or a reference to an instance's methods as its arguments. Because of...

/blog/2017/11/27/laravel-55-string-helper-function-studly

Studly caps is a way of formatting text with capital letters, according to some pattern. Laravel's pattern is to remove the following word separators and capitalize the first letter of each word it finds (while not affecting the case of any other...

/blog/2018/04/14/laravel-5-generating-urls-to-assets-with-asset

…ave the http:// schema. The application URI used to generate the final URI is what was used to issue the request, and typically matches what appears in the browser's address bar.The signature of the asset function is:Assuming the application path...

/blog/2018/04/14/laravel-5-logging-informative-messages-with-info

The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual elements of the array do not...

/blog/2018/04/14/laravel-5-resolving-concrete-implementations-from-the-service-container-with-resolve

…e dependencies from the Service Container, however, unlike the app helper function, you cannot supply parameters to the Service Container when it is resolving the dependency.The signature of the resolve function is:The following example will...

/blog/2018/04/21/laravel-5-fluent-api-dynamic-data-containers-and-the-fluent-data-type

…e will again throw an instance of ErrorException , with the error message being something similar to "Undefined property: stdClass::$doesNotExit". To work around this, the following code can be written: The above code example can be simplified...

/blog/2018/04/21/laravel-5-macros-injecting-class-based-macros-with-mixin

…lass as macro methods. The mixin method accepts a class instance as its first and only argument.The signature of the mixin method is:In the following example, we will define a new string mixin class StringEncryptionMixins that will provide access...

Some absolutely amazing
people

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.