Showing 10 of 1,204 results.

Laravel 5 String Helpers: Pluralization and Strings

…. It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to strings ending in common character sequences, handle special cases and will not...

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

setLocale($locale) | The Laravel Translator

The setLocale method is used to set the locale that the translator should use. It accepts only one parameter $locale , which is the locale that should be set. By default, it is set to the value defined for locale in the app.php configuration file.

setFallback($fallback) | The Laravel Translator

The setFallback method is used to set the fallback locale that the translator should use. It accepts only one parameter $fallback , which is the fallback locale that should be set. By default, it is set to the value defined for fallback_locale in...

Disabling Vite File Hashes

Recently I've been working on a rather large rebuild to my personal, Statamic-powered blog. As part of that rebuild I migrated my build processes to Vite, but ran into an issue where I needed the filenames for my CSS, JavaScript, and assets to...

Array Options | Alternatives to Laravel Artisan Command Signatures

…tion :: VALUE_IS_ARRAY | InputOption :: VALUE_OPTIONAL ] 11 ] ; 12 } 13 14 // End of class omitted... In the above example two option mode values have been combined. If you were to specify just the InputOption::VALUE_IS_ARRAY option an error...

Step 2: The Paginator View | Semantic UI Paginator for Laravel 4

Now we need to make a pagination view. This is the easy part. We simply create a new view in the views folder wherever you want. I named mine paginator.php in a folder that I named semantic . The paginator view looks like this: 1 <?php 2 $...

Preamble | License

…ly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous...