Search

Showing 7 of 2,041 result(s)

/blog/2018/04/21/laravel-5-message-bags-getting-the-current-message-format-with-getformat

The getFormat is the logical opposite of the setFormat method. It simply returns the current format that is being used by the MessageBag instance.The signature of the getFormat method is: public function getFormat();The following examples...

/meerkat/meerkat-forms#content-form-attributes

With Meerkat, it is simple to add additional form attributes to your Meerkat forms. The following example demonstrates how to add a custom HTML data attribute and a CSS class:

/blog/2016/11/29/laravel-viewerrorbag-public-api-getbags

The getBags method is used to return an associative array containing all the MessageBag instances that are currently stored within the ViewErrorBag instance. After the above code has executed, the $messageBags variable would be an array and...

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

For example, the following signature could be used to accept a user's first and last name: Since the {firstName} and {lastName} input requirements were defined as parameters and do not define a default value, the command requires that arguments be...

/blog/2016/12/07/laravel-artisan-tinker-the-up-command

The up command is used to take an application out of maintenance mode. It does this by removing a file named down from the application's framework storage directory (by default this is storage/framework/ ). This command performs the same action as...

/blog/2017/11/30/checking-if-a-string-starts-with-a-particular-value-in-laravel-laravel-55-string-helper-method-startswith

startsWith does the opposite of ends_with , and has the same rules of use. Instead of checking if a given $haystack ends with any of the supplied $needles , startsWith checks if a given $haystack starts with any of the $needles .