diff --git a/README.md b/README.md index 6fbc104..920fd21 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jquery-laravel [![Build Status](https://travis-ci.org/efficiently/jquery-laravel.png?branch=2.4)](http://travis-ci.org/efficiently/jquery-laravel) +# jquery-laravel [![Build Status](https://travis-ci.com/efficiently/jquery-laravel.png?branch=2.4)](https://travis-ci.com/github/efficiently/jquery-laravel) jQuery! For Laravel 5.5, 5.6 and 5.7! So great. @@ -17,6 +17,7 @@ patch version bump = updates to jquery-ujs, jquery-laravel, and patch-level upda minor version bump = minor-level updates to jQuery major version bump = major-level updates to jQuery and updates to Laravel/Larasset which may be backwards-incompatible ``` +For [Laravel 6.x, 7.x or 8.x](http://laravel.com/docs/8.x) supports see [jQuery-Laravel **2.5 branch**](https://github.com/efficiently/jquery-laravel/tree/2.5) For [Laravel 5.1, 5.2, 5.3 or 5.4](http://laravel.com/docs/5.4) supports see [jQuery-Laravel **2.3 branch**](https://github.com/efficiently/jquery-laravel/tree/2.3) diff --git a/src/Efficiently/JqueryLaravel/BladeExtensions.php b/src/Efficiently/JqueryLaravel/BladeExtensions.php index 40e362c..8c16f2b 100644 --- a/src/Efficiently/JqueryLaravel/BladeExtensions.php +++ b/src/Efficiently/JqueryLaravel/BladeExtensions.php @@ -67,7 +67,7 @@ public function registerContentTags() $attributes = preg_split('/\s?,\s?/', array_get($result, 2, [])); $tagName = array_get(array_filter($attributes), 0, "'div'"); - $options = count($attributes) >= 2 ? implode(array_slice($attributes, 1), ',') : "[]"; + $options = count($attributes) >= 2 ? implode(',', array_slice($attributes, 1)) : "[]"; $replacement = "attributes($options).'>';$3 ?>"; $view = preg_replace($pattern, $replacement, $view, 1); } @@ -93,7 +93,7 @@ public function registerContentTags() $tagName = array_get(array_filter($attributes), 0, "'div'"); $record = array_get($attributes, 1); $prefix = array_get($attributes, 2, "null"); - $options = count($attributes) >= 4 ? implode(array_slice($attributes, 3), ',') : "[]"; + $options = count($attributes) >= 4 ? implode(',', array_slice($attributes, 3)) : "[]"; $asOption = preg_split('/, */', array_get($result, 3));