Releases: djl997/blade-shortcuts
Releases · djl997/blade-shortcuts
v1.8.0
Added
@dayOfWeek
directive
@dayOfMonth
directive
@dayOfYear
directive
v1.7.3
Changed
- Renamed
@notIsset
to @notSet
, keeping the old name as an alias.
v1.7.2
Added
- Spanish translation for time/date formats
v1.7.1
Fix
- Fix "Uninitialized string offset 0" for
@date
directive
v1.7.0
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
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
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
Added
@arr
Array helpers
@str
Fluent Strings helpers
v1.5.0
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%.