Blade Shortcuts Versions Save

Blade Shortcuts is a library of handy Laravel Blade Directives.

1.7.4

1 month ago

Added

  • nesbot/carbon allow ^3.0

1.7.3

2 months ago

Changed

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

1.7.2

3 months ago

Added

  • Spanish translation for time/date formats

1.7.1

6 months ago

Fix

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

1.7.0

6 months ago

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.

1.6.3

9 months ago

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.

1.6.1

11 months ago

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

1.6.0

1 year ago

Added

  • @arr Array helpers
  • @str Fluent Strings helpers

1.5.0

1 year ago

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%.

1.4.0

1 year ago
  • Added @percentage directive