Search

Showing 7 of 1,216 result(s)

/blog/2016/11/20/laravel-helper-function-session

session($key = null, $default = null) The session function is a versatile function. It can be used to return the \Illuminate\Session \SessionManager instance, to set session values and to retrieve session values.

/blog/2016/11/21/laravel-classes-that-support-macros

The following table will list every framework class that implements the __call method directly. The table will also indicate if the class supports macros even though it implements __call . Please note that the following table does not take into...

/blog/2016/11/21/laravel-miscellaneous-helper-function-data_get

data_get($target, $key, $default = null) The data_get function is identical in behavior to both the array_get and object_get function. The difference is that the data_get function will accept both objects and arrays as its $target .

/blog/2016/11/21/laravel-miscellaneous-helper-function-data_set

data_set(&$target, $key, $value, $overwrite = true) The data_set helper function can be used to set the value of an item in an array or an object property using dot notation. It accepts a reference to a $target array or object; the $key (array key...

/blog/2016/11/21/laravel-miscellaneous-helper-function-dd

dd() The dd function is a debug utility that will dump a set of values and then die. This means it will create a human-readable representation of the values and then stop execution of the script. The dd function will take into account if the...

/blog/2016/11/21/laravel-miscellaneous-helper-function-object_get

object_get($object, $key, $default = null) 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 supplied object will have a given...

/blog/2016/11/21/laravel-miscellaneous-helper-function-trait_uses_recursive

trait_uses_recursive($trait) The trait_uses_recursive function will return an array of all the traits that are used by a class. It will also return any traits that the traits are using. Given the traits and class: The traits used by ExampleClass...