Search

Showing 7 of 1,216 result(s)

/blog/2016/11/30/the-laravel-translator#content-getfallback

The getFallback() method is used to return the fallback locale that the translator is currently using. A fallback locale is used when a translation for a different locale cannot be found.

/blog/2016/11/30/the-laravel-translator#content-setfallbackfallback

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

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-input-parameters

Input parameters require the Symfony\Component\Console\Input\InputArgument class to be imported in the current PHP file. Input parameters are defined in the getArguments instance method in the command class. The following signature will be...

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-input-parameter-default-values

The signature that will be implemented using the getArguments method is: test:command {firstArgument=DefaultValue} The corresponding getArguments implementation would be: It is important to note that the mode changed from InputArgument::REQUIRED...

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-adding-descriptions-to-command-parameters

The signature that will be implemented using the getArguments method is: test:command {firstArgument : This is the description } The corresponding getArguments implementation would be:

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-command-options

Input options require the Symfony\Component\Console\Input\InputOption class to be imported in the current PHP file. Input options are defined in the getOptions instance method in the command class. The following signature will be implementing...

/blog/2016/12/01/alternatives-to-laravel-artisan-command-signatures#content-command-option-default-values

The signature that will be implemented using the getOptions method is: test:command {--optionName=DefaultValue} The corresponding getOptions implementation would be:

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.