Laravel V5.4.29 is now released and available. This is a maintenance release but it includes two new Blade Directives, a
--force
option on some of the “make” commands, and more.New @auth and @guest Directives
The @auth directive allows you to simplify the check to see if a user is logged in. For example, in the past you might use:
@if(Auth::check())
You are logged in.
@endif
Now with the @auth directive, this can be simplified to:
@auth
You are logged in.
@endauth
It also supports the Guard to use as the first parameter:
@auth('admin')
You are logged in through admin guard
@endauth
The other new directive is @guest which is the inverse:
@guest
Welcome Guest
@endauth
v5.4.29 Complete Changelog
Added
- Added
ManagesFrequencies::twiceMonthly()
method (#19874) - Added
RouteCollection::getRoutesByName()
method (#19901) - Added
$expiresAt
parameter toCallbackEvent::withoutOverlapping()
(#19861) - Support keeping old files when testing uploads (#19859)
- Added
--force
option tomake:mail
,make:model
andmake:notification
(#19932) - Added support for PostgreSQL deletes with
USES
clauses (#20062, f94fc02) - Added support for CC and BBC on mail notifications (#20093)
- Added Blade
@auth
and@guest
directive (#20087, #20114) - Added option to configure MARS on SqlServer connections (#20113, c2c917c)
Changed
- Support object items in
Arr::pluck()
(#19838, #19845) MessageBag
interface now extendsArrayable
(#19849)- Made
Blueprint
macroable (#19862) - Improved performance for
Arr::crossJoin()
(#19864) - Use the correct
User
model namespace for new policies (#19965, a7094c2) - Consider scheduled event timezone in
inTimeInterval()
(#19959) - Render exception if handler can’t report it (#19977)
- Made
MakesHttpRequests::withServerVariables()
public (#20086) - Invalidate session instead of regenerating it when logging out (#20107)
- Improved
InvalidPayloadException
error message (#20143)
Comments
Post a Comment