diff --git a/README.md b/README.md index 7349ba6..ec2c743 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,37 @@ + + +This is originally develeoped at [Caffeinated Menus](https://github.com/caffeinated/menus). Modified to acheive my needs. + + +For this package Installation guide +============================== + +Begin by installing the package through Composer. + +``` +composer require jigs1212/menus +``` + +Once this operation is complete, simply add the service provider class and facade alias to your project's `config/app.php` file: + +#### Service Provider +```php +Jigs1212\Menus\MenusServiceProvider::class, +``` + +#### Facade +```php +'Menu' => Jigs1212\Menus\Facades\Menu::class, +``` + +And that's it! With your coffee in reach, start building out some awesome menus! + + + + +ORIGINAL PACKAGE +================= + Caffeinated Menus ================= [![Laravel 5.3](https://img.shields.io/badge/Laravel-5.3-orange.svg?style=flat-square)](http://laravel.com) diff --git a/composer.json b/composer.json index 5d3fc32..c80afd4 100755 --- a/composer.json +++ b/composer.json @@ -1,25 +1,25 @@ { - "name": "caffeinated/menus", + "name": "jigs1212/menus", "description": "Laravel 5 Menus", - "keywords": ["menu", "navigation", "laravel", "caffeinated"], + "keywords": ["menu", "navigation", "laravel", "caffeinated", "jigs1212"], "license": "MIT", "authors": [ { - "name": "Shea Lewis", - "email": "shea.lewis89@gmail.com" + "name": "Jigar Lodaya", + "email": "jigar.lodaya12@gmail.com" } ], "require": { "php": ">=5.6.4", - "illuminate/support": "5.3.*|5.4.*|5.5.*", - "illuminate/config": "5.3.*|5.4.*|5.5.*", - "illuminate/routing": "5.3.*|5.4.*|5.5.*", - "illuminate/view": "5.3.*|5.4.*|5.5.*", - "laravelcollective/html": "5.3.*|5.4.*|5.5.*" + "illuminate/support": "^5.3", + "illuminate/config": "^5.3", + "illuminate/routing": "^5.3", + "illuminate/view": "^5.3", + "laravelcollective/html": "^5.3" }, "autoload": { "psr-4": { - "Caffeinated\\Menus\\": "src/" + "Jigs1212\\Menus\\": "src/" } }, "extra": { @@ -28,10 +28,10 @@ }, "laravel": { "providers": [ - "Caffeinated\\Menus\\MenusServiceProvider" + "Jigs1212\\Menus\\MenusServiceProvider" ], "aliases": { - "Menu": "Caffeinated\\Menus\\Facades\\Menu" + "Menu": "Jigs1212\\Menus\\Facades\\Menu" } } } diff --git a/src/Builder.php b/src/Builder.php index 3f2fca7..1683c3d 100755 --- a/src/Builder.php +++ b/src/Builder.php @@ -1,5 +1,5 @@ data[$attribute]) && $item->data[$attribute] == $value) { return true; } - + if (! property_exists($item, $attribute)) { return false; } diff --git a/src/Collection.php b/src/Collection.php index a15c93d..7ac44ed 100755 --- a/src/Collection.php +++ b/src/Collection.php @@ -1,5 +1,5 @@ '; break; + case 'span': + $html = ''; + break; + default: $html = ''; break; @@ -333,7 +337,7 @@ public function checkActiveStatus() list($path, $requestPath) = preg_replace('@^('.$base.')/@', '', [$path, $requestPath], 1); } - + if ($this->url() == Request::url() || $this->url() == \URL::secure(Request::path())) { $this->activate(); } @@ -370,7 +374,7 @@ public function active($pattern = null) return $this; } - + /** * Returns bool value if item is active or not. * diff --git a/src/Link.php b/src/Link.php index 9398f1b..15d5921 100755 --- a/src/Link.php +++ b/src/Link.php @@ -1,5 +1,5 @@