In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains the "detailed steps to add planned task events in Laravel6.0.4". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "detailed steps to add planned task events in Laravel6.0.4".
This release includes scheduled task events, the new JSON assertion method, and all the latest changes. Let's take a look at some of the highlights and new features in this release:
First, an assertJsonPath () assertion is added to the TestResponse class, which is convenient for using dot assertion values for nested attributes in the JSON response:
$this- > getJson (route ('api.post.show', [$post- > id]))-> assertJsonPath (' tags', [])-> assertJsonPath ('comments.0.user.username',' ecrmnn')-> assertJsonPath ('comments.*.body', [' firstproof, 'This is my comment',])
Next, to facilitate assertion, add three new access methods to the Eloquent generator, regardless of whether the generator class has a global / local macro:
$builder- > hasMacro ($name); $builder- > getGlobalMacro ($name); $builder- > hasGlobalMacro ($name)
Add another access method to the BelongsToMany association to get the columns of the intermediate table:
$example- > getPivotColumns ()
Next, prepare two events for the scheduled task: ScheduledTaskStarting and ScheduledTaskFinished. You can learn more about these events in Michael Dyrynda's article Pull Request # 29888. Trust your friend.
The last new update in this release allows you to define command parameters and options using inputargument and inputoption objects:
/ / current style, still supported by protected function getArguments () {return [['name', InputArgument::REQUIRED,' the argument\'s description', 'default value'],];} / / New style protected function getArguments () {return [new InputArgument (' name', InputArgument::REQUIRED, 'the argument\' s description', 'default value'),];}
This feature works in a backward-compatible manner, but adds another alternative way to define parameters and options.
You can see a complete list of fixes below, as well as all the differences between 6.0.3 and 6.0.4 on Github. The full release notes for Laravel 5.8 can be found in Github V6 changelog:
Laravel v6.0.4 version
Add
Added TestResponse::assertJsonPath () method (# 29957)
Added hasglobalmacro, getglobalmacro, hasglobalmacro methods to Eloquent Builder (# 30008)
Added Illuminate\ Database\ Eloquent\ Relations\ BelongsToMany::getPivotColumns () method (# 30049)
Added events that signal when ScheduledTaskFinished ScheduledTaskStarting scheduled tasks are running (# 29888)
Allows you to add command parameters and options with InputArgument InputOption objects (# 29987)
Repair
Fixed _ _ () and null parameters (# 29967)
Fixed modification of updated_at columns on custom PivotModel (# 29970)
Fixed Illuminate\ Redis\ Limiters\ ConcurrencyLimiter (# 30005)
Fixed VerifyCsrfToken middleware in response object instance of Responsable interface (# 29972)
Fixed an issue where there was no optional precision when creating Postgresql columns (# 29873)
Fixed multipath migration files with specific file names (# 29996)
Fixed a problem of adding NotFoundHttpException to allowed exceptions during testing (# 29975)
Change
Makes it possible to disable encryption through 0/false (# 29985)
Allow symfony file instances in validate dimensions (# 30009)
Create storage simulation data using a custom configuration (# 29999)
Set the locale (dd1e0a6) in pendingmail only if it exists conditionally
Improved sorting of imports alphabetically when generating classes from the root directory (# 29951)
Reconstruct
Change the import to Alpha sort in the root directory (# 29954, # 29958)
Use helper functions whenever possible (# 29959)
Improved readability of auth.throttle translation (# 30011, # 30017)
Thank you for your reading, the above is the content of "detailed steps of scheduled task events will be added to Laravel6.0.4". After the study of this article, I believe you have a deeper understanding of the problem that detailed steps of planned task events will be added to Laravel6.0.4, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.