0

Laravel V5.4.28 is now released

 1 month ago
source link: https://www.laravelcode.com/post/laravel-v5428-is-now-released
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Laravel V5.4.28 is now released

  3250 views

  4 years ago

Laravel

The laravel team released laravel version 5.4.28 yesterday and add some new funtion like array_random() and some bugs fixed and remove role attribute from forms in stubs

The first of these is a new array_random helper that allows you do something like this


array_random(['one', 'two', 'three']);
// "two"

Or you can specify the number of random items you’d like returned:


array_random(['one', 'two', 'three'], 2);
// array:2 [▼
  0 => "one"
  1 => "three"
]

[ADDCODE]

Another new feature is an unless method on the query builder and Collections which allows you to make your code more expressive. For example, on a Collection:


collect()->when(! true, function () {});
// is the same as:
collect()->unless(true, function () {});

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on harsukh21@gmail.com


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK