Search

Showing 7 of 1,975 result(s)

/blog/2018/04/11/laravel-5-sorting-arrays-with-sort

The sort helper method will allow you to sort the given $array based on some condition returned by the $callback . The method works by iterating over all the values in the $array and passing the values it finds into the $callback function. It then...

/blog/2018/04/14/laravel-5-creating-eloquent-models-for-testing-with-factory

The factory function is used to create Eloquent models, and is generally used when testing an application to generate sample data.The signature of the factory function is:The factory method can generally take one of four forms:

/blog/2018/04/15/laravel-5-getting-the-class-name-for-an-object-instance-with-class_basename

The class_basename function will return the name of the class represented by the provided value.The signature of the class_basename function is:The class_basename will return the base name of the given $class . The examples that follow will use...

/blog/2018/04/15/laravel-5-retrieving-object-values-with-object_get

…rties from a given $object using dot notation. This is useful in situations where it can not be guaranteed that a provided object will have a given property, identified by the given $key .The signature of the object_get function is:The following...

/blog/2023/12/10/that-escalated-quickly-all-the-new-things#content-bard-heading-permalinks-for-statamic

Bard Heading Permalinks for Statamic is a simple addon that can generate permalinks for headings within Bard fields. This addon is compatible with Statamic's markdown permalink configuration. Bard Heading Permalinks for Statamic GitHub