Showing 10 of 1,090 results.

Laravel 5 String Helpers: Parse Callback

parseCallback is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: 1 ClassName @ someMethodName The point is...

Laravel Router Helper Function: put

put($uri, $action) The put function is a shortcut to registering a route with the router that responds to the PUT 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...

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...

Laravel Application Helper: app_path

app_path($path = '') The app_path will return the full path to the Laravel application directory (which is named app by default). The exact value returned by calling app_path is dependent on the specific folder structure where the application is...

Laravel Application Helper: base_path

base_path($path = '') The base_path function can be used to retrieve the path to the directory the Laravel application is installed in. It can also be used to construct paths relative to the base path by supplying a $path . The following examples...

Laravel Helper Function: csrf_field

csrf_field() The csrf_field function can be used to generate a hidden HTML element containing the value of the CSRF token. For example, the following HTML code can be greatly simplified using the function: 1 <! DOCTYPE html > 2 < html > 3 < head >...

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...

Type | Open Graph Metadata

The type method queues a <meta property="og:type" content="..."> tag. By default it sets the type to website . 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 Metadata :: openGraph ( ) -> type ( ) ; 6 Metadata...

Filter Search