Search

Showing 7 of 1,216 result(s)

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

value($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, the function will be executed and the value will be returned. If...

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

windows_os The windows_os helper function can be used to determine if the host server is running a Microsoft Windows® operating system. The function returns either true —if the server is running Windows®—or false —if the server is not running...

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

with($object) The with function will simply return the supplied $object . This function can be used to invoke methods on new class instances that are passed as function arguments: In the above example, $value would be contain the value some value...

/blog/2016/11/21/laravel-router-helper-function-delete

delete($uri, $action) The delete function is a shortcut to registering a route with the router that responds to the DELETE HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when...

/blog/2016/11/21/laravel-router-helper-function-get

get($uri, $action) The get function is a shortcut to registering a route with the router that responds to the GET HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route...

/blog/2016/11/21/laravel-router-helper-function-patch

patch($uri, $action) The patch function is a shortcut to registering a route with the router that responds to the PATCH HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the...

/blog/2016/11/21/laravel-router-helper-function-post

post($uri, $action) The post function is a shortcut to registering a route with the router that responds to the POST HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the...