Search

Showing 7 of 587 result(s)

/blog/2018/04/15/laravel-5-retrieving-object-values-with-object_get

The object_get allows developers to retrieve properties from a given $object using dot notation. This is useful in situations where it can not be guaranteed that a provided object will have a given property, identified by the given $key .The...

/blog/2018/04/15/laravel-5-retrieving-the-default-value-of-a-given-variable-with-value

The value function will return the default value of the supplied $value . Although this sounds redundant, if the supplied $value is an instance of the Closure class (an anonymous function), the function will be executed and the value will be...

/blog/2018/04/21/laravel-5-facades

Facades are a convenient way to access Laravel's components. Each facade is bound to some component already registered in the service container. Facades are typically used to provide a simpler interface to an complex underlying subsystem. While...

/blog/2018/04/21/laravel-5-facades#content-using-facades

Laravel's facades are used just like any other static class, with the exception that facades are redirecting method calls to an actual class instance. Facades are typically imported at the top of the source file, along with any other classes that...

/blog/2018/04/21/laravel-5-facades#content-creating-facades

It may become necessary when developing certain applications, or when creating packages to write a facade class. Creating a facade class is fairly simple. The first thing that is required is some actual concrete class the facade will be accessing....

/blog/2018/04/21/laravel-5-facades#content-notes-on-blade

Most facades request a concrete class implementation from the service container based off of some abstract string representation. However, the Blade facade retrieve an "Illuminate\View\Engines\EngineResolver" instance from the...

/blog/2018/04/21/laravel-5-facades#content-notes-on-schema

Like the Blade facade, the Schema facade does not simply resolve some instance from the service container. The Schema facade returns an instance of "Illuminate\Database\Schema\Builder" configured to use the default connection that appears in the...