Showing 10 of 1,322 results.

Laravel Array Helper Function: array_has

has($array, $key) The has helper method will return a boolean value that indicates if the given $key exists in the supplied $array , using dot notation. This method is incredibly useful when checking if an array has a specific key at an arbitrary...

Laravel 5: Creating Eloquent Models for Testing With factory

…instance of the 'User' model. 2 $ user = factory ( ' App\User ' ) -> make ( ) ; 3 4 // Return two instances of the 'User' model. 5 $ users = factory ( ' App\User ' , 2 ) -> make ( ) ; 6 7 // Return one instance of the 'User' model, with some 8 //...

Laravel MessageBag Public API: any

The any method returns a boolean value indicating if the MessageBag instance actually has any messages. The method returns true if the instance has messages, otherwise it returns false . The following code examples demonstrate the usage of this...

submit Event Method | Advanced Reply Forms

The sumbit() method is called when a visitor clicks on the "Submit Reply" button. This method is wired up to the form's submit event, so you can do anything you'd like here: 1 MeerkatReply . submit = function ( evt ) { 2 // Handle the form. 3...

E-mailing Output | Laravel Task Scheduling: Managing Task Output

…to use the E-mail methods. It is important to note that the sendOutputTo (or any of the other file-based output management methods) method has been called first: 1 <?php 2 3 // ... 4 5 protected function schedule ( Schedule $ schedule ) 6 { 7 //...

13. Use with the GNU Affero General Public License. | License

Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting...

13. Use with the GNU Affero General Public License. | License

Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting...