Skip to content

Releases: djl997/blade-shortcuts

v1.8.0

20 Jun 14:28
Compare
Choose a tag to compare

Added

  • @dayOfWeek directive
  • @dayOfMonth directive
  • @dayOfYear directive

v1.7.4

05 Apr 09:34
Compare
Choose a tag to compare

Added

  • nesbot/carbon allow ^3.0

v1.7.3

27 Feb 07:12
Compare
Choose a tag to compare

Changed

  • Renamed @notIsset to @notSet, keeping the old name as an alias.

v1.7.2

31 Jan 15:43
Compare
Choose a tag to compare

Added

  • Spanish translation for time/date formats

v1.7.1

25 Oct 08:23
Compare
Choose a tag to compare

Fix

  • Fix "Uninitialized string offset 0" for @date directive

v1.7.0

25 Oct 08:17
Compare
Choose a tag to compare

Added

  • New cascade directives to make a certain amounts of time more readable for humans by @CorwinDev and myself
    • @cascadeFromMinutes
    • @cascadeFromHours
    • @cascadeFromDays
    • @cascadeFromWeeks
    • @cascadeFromMonths
  • New directive to output safe HTML newlines @nl2br by @CorwinDev

Updated

  • The directives @date, @datetime, @year, @month, @day and @time now return the current date if no arguments are passed, but if you pass null (hard-coded, or dynamically) the directive will echo an empty string.

v1.6.3

16 Aug 08:35
Compare
Choose a tag to compare

Fixed

  • Fallback to current date time if expression is left empty for date directives @datetime, @time, @year, @month and @day.
  • The exception Unexpected '('... is also fixed when calling this directives without arguments.

v1.6.1

09 Jun 14:04
Compare
Choose a tag to compare

Added

  • Made the default breakpoint of 23 hours of dateOrDiff in the Date Directive configurable
  • Publish the config file using php artisan vendor:publish --tag=blade-shortcuts-config

v1.6.0

03 May 14:00
Compare
Choose a tag to compare

Added

  • @arr Array helpers
  • @str Fluent Strings helpers

v1.5.0

13 Apr 09:29
Compare
Choose a tag to compare

Added

  • New date directives:
    • @year
    • @month
    • @day
    • @time
    • @datetime
  • @notEmpty and @endNotEmpty directives
  • @notIsset and @endNotIsset directives

Fixed

  • Fixed issue with percentage, value 1 was not interpreted as 100% but as 1%.