Showing 10 of 1,090 results.

Laravel Application Helper: config_path

config_path($path = '') The config_path function can be used to retrieve the path the config directory. It can also be used to construct paths relative to the configuration directory by supplying a $path . The following examples will assume that...

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

Laravel 5.5 String Helper Function: studly

Studly caps is a way of formatting text with capital letters, according to some pattern. Laravel's pattern is to remove the following word separators and capitalize the first letter of each word it finds (while not affecting the case of any other...

The Comment Thread

…ollowing HTML snippet to create our simple comment thread: 1 < ul class = " list-none mx-auto mt-5 p-5 " > 2 < li class = " relative flex w-full flow-root " > 3 < div class = " relative " > 4 < p class = " block font-bold p-3 lg:text-lg " >...

Laravel Helper Function: env

env($key, $default = null) The env function can be used to get an environment variables value. If an environment value with the given $key exists, its value will be returned. If the given $key does not exist, the $default value will be returned...

Performing Bulk Actions | Managing Comments

…e, or by selecting all comments using the checkbox in the top-left corner of the comments table. When at least one comment is selected, the bulk action options will appear. The options that are presented to the user are dependent on their...

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

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: 1 <?php 2 3 trait TraitOne { } 4...

Laravel Helper Function: cookie

cookie($name = null, $value = null, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true) The cookie function is generally used to create a new instance of the \Symfony\Component\HttpFoundation\Cookie class. If the...

Filter Search