Skip to content

Commit

Permalink
laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Sep 5, 2019
1 parent b1c5908 commit 71979d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "akaunting/menu",
"description": "Menu and sidebar management package for Laravel.",
"keywords": ["laravel", "menu", "navigation", "sidebar", "bootstrap"],
"keywords": [
"laravel",
"menu",
"navigation",
"sidebar",
"bootstrap"
],
"license": "MIT",
"authors": [
{
Expand All @@ -13,10 +19,10 @@
],
"require": {
"php": ">=7.1",
"illuminate/config": ">=5.5 <6.0",
"illuminate/support": ">=5.5 <6.0",
"illuminate/view": ">=5.5 <6.0",
"laravelcollective/html": ">=5.5 <6.0"
"illuminate/config": ">=5.5",
"illuminate/support": ">=5.5",
"illuminate/view": ">=5.5",
"laravelcollective/html": ">=5.5"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.10",
Expand Down
3 changes: 2 additions & 1 deletion src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Collective\Html\HtmlFacade as HTML;
use Illuminate\Contracts\Support\Arrayable as ArrayableContract;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Str;

/**
* @property string url
Expand Down Expand Up @@ -100,7 +101,7 @@ protected static function setIconAttribute(array $properties)
*/
protected static function getRandomName(array $attributes)
{
return substr(md5(array_get($attributes, 'title', str_random(6))), 0, 5);
return substr(md5(array_get($attributes, 'title', Str::random(6))), 0, 5);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/Presenters/Bootstrap3/Sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Akaunting\Menu\Presenters\Bootstrap3;

use Akaunting\Menu\Presenters\Presenter;
use Illuminate\Support\Str;

class Sidebar extends Presenter
{
Expand Down Expand Up @@ -82,7 +83,7 @@ public function getHeaderWrapper($item)
*/
public function getMenuWithDropDownWrapper($item)
{
$id = str_random();
$id = Str::random();

return '
<li class="' . $this->getActiveStateOnChild($item) . ' panel panel-default" id="dropdown">
Expand Down

0 comments on commit 71979d6

Please sign in to comment.