Showing 10 of 2,133 results.

addNamespace($namespace, $hint) | The Laravel Translator

The Translator class exposes the addNamespace method as part of its public API. The addNamespace internally makes a call to the addNamespace method on the current instance of the Illuminate\Translation\LoaderInterface implementation, which by...

GNU GENERAL PUBLIC LICENSE | License

Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. < https://fsf.org/ > Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Storing the Current Page's URL | Laravel Paginator Pretty URLs

…our page URL to look pretty: 1 ... 2 $ pageUrl = $ currentUrl . ' / ' . $ pageName . ' / ' . $ page ; 3 ... What the above code will do is take the current page URL, for example http://localhost:8000/users , followed by a forward slash, the...

Example Use | Laravel 5 Fluent API: The Public API

…following code is executed: 1 $ fluent = new Fluent ( $ testObject ) ; 2 3 $ attributes = $ fluent -> getAttributes ( ) ; The $attributes variable would look have a value similar to the following: 1 array 2 'first' => string 'The first value' 3...

JavaScript: Checking If a Variable Is Defined

…sing this little code snippet: 1 if ( typeof myVariableName === ' undefined ' ) { 2 // The myVariableName is undefined! 3 } Notice that undefined is in quotes. That is because the typeof operator will return a string. Just a little piece of...

Open Graph Metadata

The general metadata builder provides various methods to add common metadata information to your site, such as keywords, titles, and descriptions. To access the general metadata builder using the Metadata facade, we can call the openGraph method:...

Fully Qualified Names vs. Aliases | Laravel 5 Facades

Fully qualified names, such as "Illuminate\Support\Facades\Input" are longer, but offer greater clarity on what class is being imported. At the end of the day, it comes down to personal preference.

The Problem | MySQL: Root Element Is Missing (Windows 8.1)

I'm honestly not sure what caused this issue. I got this issue again today after my machine (Windows 8.1) crashed with the helpful MEMORY_MANAGEMENT error message. Google Chrome's preferences also could not be reloaded after this crash. I will be...

GNU GENERAL PUBLIC LICENSE | License

Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. < https://fsf.org/ > Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.