Showing 10 of 2,142 results.

Example Use | Laravel 5: Generating URLs With url

All of the method/function calls in the following example are equivalent: 1 use Illuminate \ Support \ Facades \ Url ; 2 3 // Using the URL facade. 4 Url :: action ( ' SomeController@someAction ' ) ; 5 6 // Calling the action method on the URL...

Laravel 5: Generating URLs to Named Routes With route

The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and $absolute ). It acts a shortcut to calling the...

Laravel Application Helper: auth

auth($guard = null) Used without supplying any arguments for $guard , the auth helper function is an alternative to using the Auth facade. With no arguments, the auth function returns an instance of Illuminate\Contracts\Auth\Factory (which by...

Laravel Collection Public API: keys

keys The keys method is used to retrieve the keys of all items in the collection. The keys method returns a new Collection instance. The following code example demonstrates the usage of the keys method: 1 <?php 2 3 use Illuminate \ Support \...

Front-end Templates

There are two ways to add favicon metadata/link tags to your site's front-end templates: the dedicated Antlers tag and the metadata provider.The se_get_favicons Antlers tag returns information about the generated favicons to help construct the...

Laravel 5: Accessing Validation Features With validator

The validator helper function is a versatile helper function. If no arguments are supplied to the validator function (all arguments are optional), the function will return a Illuminate\Contracts\Validation\Factory implementation instance (the...

Menu Item Sections | Navigation Menus

Any collection entry or navigation can be marked as a "section" by toggling the "Is Section" field within the Statamic Control Panel. When this field is toggled on, the entry or menu item will be rendered as a static menu item. If the menu item is...

License

Documentation Search for Statamic is free software, released under the MIT license.Copyright (c) <Johnathon Koster> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...

Intervals | Laravel String Pluralization

Specifying every number required for a given translation message can be tedious, or even impossible. However, intervals can be specified to make working with large groups of numbers easier. The syntax for intervals comes directly from the ISO...