Showing 10 of 1,090 results.

Laravel Application Helper: public_path

public_path($path = '') The public_path will return the path to the public directory. It can also be used to construct paths relative to the public directory if a $path is supplied. The following examples will assume that the Laravel application...

Adding Custom Metadata from Templates | Custom Metadata Tags

We can easily add custom metadata from our front-end templates using the se_meta:append tag. For example, on a search page we might add the following: 1 {{ se_meta : append }} 2 < meta name = " robots " content = " noindex " > 3 {{ /se_meta :...

Laravel Application Helper Function: factory

factory() The factory function is used to create Eloquent models, generally used when testing an application. The factory method can generally take one of four forms: 1 <?php 2 3 // Return an instance of the 'User' model. 4 $ user = factory ( '...

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

Laravel 5.5 String Helper Function: after

The after method can be used to return a part of a string after the first occurrence of a $search character. This method can be used to help parse URL query strings, or to quickly find substrings based on a certain character.The signature of the...

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.

Laravel URL Helper Function: asset

asset($path, $secure = null) The asset function will return a URI composed of the application's URI and the given $path . If $secure is true , the returned URI will have the https:// schema, otherwise it will have the http:// schema. The...

Filter Search