Changelog

Changelog

v4.1.13

  • NEW: Ensō now supports Unique validation rules for edit routes

v4.1.9 - v4.1.12

  • NEW: Add access controls to filters
  • FIXED: Prevent relationship fields from beings used in flexible content

v4.1.8

  • NEW: Added php artsian enso:discover-files command to create database records for media files that don't have them.

v4.1.7

  • FIXED: For CheckboxField, removed the field's id and the label's for attribute to prevent clicking on labels toggling the wrong checkbox.
  • FIXED: Simplify param types in docblocks

v4.1.6

  • FIXED: Fixed an issue with applyRequestDataAfterSave in single file fields

v4.1.5

  • NEW: Added a new "excerpt" feature to flexible row title bars.
  • IMPROVED: FlexibleContentFields will now show as collapsed when the page loads for improved navigation.
  • FIXED: Dragging a row was also causing the row to collapse/expand in some circumstances. This should no longer happen.

v4.1.4

  • IMPROVED: FileUploadFieldResumable now supports ordered BelongsToMany relationships.

v4.1.3

  • IMPROVED: When using setFormatter on index columns, your callable will now receive the original $item as a second argument.

v4.1.2

  • FIXED: A longstanding issue of CRUD index pages having #NaN appended to them has been fixed
  • FIXED: The wording regarding caching on the php artisan enso:install has been corrected

v4.1.1

  • NEW: There is now a show/hide all button at the top of Flexible Content fields
  • IMPROVED: Flexible content rows will now use their label as the title of the row, rather than a capitalised version of their type name
  • FIXED: Prevented a console error where maxFileSize was being passed as a string when a number was expected

v4.1.0

  • IMPROVED / NEW: The no-upscale image crop type has been renamed to no-upscale-forced-aspect as that better describes what it does. A new crop type has been created which is called no-upscale. This allows small images to remain small without unnecessarily padding them with extra image content.

v4.0.38

  • NEW: DateTimeField can now be used within FlexibleContentField. Dates will be returned as Carbon\Carbon date objects.

v4.0.35

  • NEW: You can now override the Facebook/Twitter Meta image with a string rather than an ImageFile by using Meta::overrideFacebookImageUrl() and Meta::overrideTwitterImageUrl(). This can be useful if you meta image is stored externally, such as a Shopify product image.

v4.0.33

  • NEW: SVG can now be previewed in the Media section and file upload fields.

v4.0.31

  • IMPROVED: Enso\Crud\Traits\HasFields::baseRemoveField is now idempotent

v4.0.30

  • NEW: Added config value to control maxiumum file size. Can still be overridden per-field.
  • NEW: Added a command to generate basic policy tests.
  • IMPROVED: Default CRUD pagination to 20.
  • IMPROVED: FlexibleField handler's getRowContent now returns an empty string when there is no content.

v4.0.29

  • FIXED: Made FileUploadField use addPreviews

v4.0.28

  • FIXED: Fixed an SQL error when only one file was present in FileUploadField

v4.0.27

  • IMPROVED: FileUploadFieldResumable is now orderable when used in a FlexibleContentField.

v4.0.25 & v4.0.26

  • FIXED: Field::removeFieldsetClass now works as expected

v4.0.24

  • NEW: Use Laravel Mix versioning for backend assets.

v4.0.23

  • IMPROVED: The flexible content "add a row" dropdown menu now displays as a grid rather than a list to prevent it going off screen.
  • IMPROVED: Updated Bulma to 0.9.3
  • REMOVED: Don't attempt to publish svg.js any more. It doesn't exist.

v4.0.22

  • NEW: Allow IsPublishable CRUDs to determine if a given model is publishable.

v4.0.21

  • NEW: Added ImageSeeder.

v4.0.20

  • NEW AND IMPROVED: Streamlined the CRUD events system.

v4.0.19

  • NEW: Added autonomous traits.
  • IMPROVED: Extracted IsOrderable from controller to a trait.

v4.0.18

  • NEW: Allow changing "add new row" button text.

v4.0.17

  • IMPROVED: Make better use of track_by and label_by in flex rows.

v4.0.16

  • FIXED: Fix Vue not compiling for the backend.

v4.0.15

  • NEW: Added video thumbnail generation.
  • IMPROVED: MediaFile thumbnails now show file names.

v4.0.14

  • IMPROVED: FlexibleContentField and FlexibleContentSection have had the traits FieldHasRowSpecs and RowHasFlexibleContent applied respectively. This allows for the creation of ad-hoc flexible content without creating fields and rowspec classes.
  • IMPROVED: Added flexibleFieldContent static call to the RowHasFlexibleContent trait for easier unpack functionality use.
  • IMPROVED: Added the row type to common unpack content as row_type. This should enable differentiating between sub-row content in flexible fields that offer multiple row type selections, such as the ButtonsField.

v4.0.11

  • IMPROVED: Pages that are linked to via SiteMenus are considered 'Protected Records' for deletion & slug editing.

v4.0.9

  • IMPROVED: IndexAction functionality largely migrated to a HasIndexActions trait.
  • IMPROVED: Edit and Delete index actions have also been migrated to implementations of the IsIndexAction interface.
  • IMPROVED: You can get a Crud Configs underlying index actions with getIndexAction and getIndexActions
  • IMPROVED: Page Crud Config has been updated to demonstrate the new index actions.

v4.0.8

  • FIXED: ControlsProtectedRecords and ControlsTemplatedRecords traits for nullable identifiers.

v4.0.6

  • IMPROVED: IndexActions have a new Class-based format.
  • ADDED: A CloneButton IndexAction and supporting functionality has been added.
  • IMPROVED: Unique slug generation now respects SlugField length, even after adding unique suffixes.
  • IMPROVED: The MakeFlexRow command now also creates a basic blade template for the row, and now generates rows using RowHasFlexibleContent in preference to SectionHasButtonsField

v4.0.2 - v4.0.3

  • IMPROVED: ButtonsField is now easier to extend.
  • ADDED: New FieldHasRowSpecs trait for adding to FlexibleContentFields that need to automatically unpack their content.
  • ADDED: New RowHasFlexibleContent trait for adding to FlexibleContentSections to make it easier to access the above trait.
  • DEPRECATED: SectionHasButtonsField has been deprecated in favour of the more generic RowHasFlexibleContent.

v4.0.1

  • FIXED: PageSeeder now works by default

v4.0.0

  • IMPROVED: Supports Laravel 8