Code Monkey home page Code Monkey logo

laraveleasynav's Issues

Default class is set to 'is-active' (Bulma) not 'active' Bootstrap

Hey,

Just wanted to give a heads up that on a fresh install today (10/16/2017), the default configuration for the active class was set to 'is-active'.

No problem with this really, but the current documentation reflects that the class is 'active' / Bootstrap by default.

Thanks and love your videos!

New rule: check if route has query string

It would be helpful if there were a query string function. Looking at the existing code, something like the following could work. (Probably a better way to do it than I'm unaware of.)

public function  #hasQuery($query, $value = '', $active = NULL)
	{
		$this->setActive($active);
		return ($this->request->get($query) == $value ? $this->active : '');
	}

A possible use case would be doing category queries on a posts index route.

is-active css class attribute of Users still when i click on Roles & Permissions..

Hello Alex...
Users item menu is is-active class while i click on Roles & Permissions and looks like are two menu items with is-active class (backgroud-color) showing at menu vertical left ... did you note it?
So i was thinking that should be a javascript class takeing the is-active class out of <a class of everything else unless the one you are clicking ????

Make a new rule: anySegment()

This would be like hasSegment() but instead would check all segments. This would differ from urlDoesContain() because it only matches full segments.

Selectively enabling config files causing breaking bug

Class config does not exist in

This is appearing to cause problems as config() is out of scope in the context of the functions.php file. For now this needs to be fixed ASAP as it is causing the package to break.

Another solution should be found before this is deployed again.

Make isRoute or any other checker accept active value and/or inactive

i ran into a situation where i need to totally remove most of my inactive class and be replaced by an active class and vice versa so i added one additional variable in the isRoute class so i don't need to write an additional line of condition to check if the page reloads. I hope this could be added on all of the checkers to have a bit more flexibility.

public function isRoute($route, $active = NULL, $inactive = NULL)
{
$this->setActive($active);
return ($this->request->routeIs($route) ? $this->active : $inactive);
}

Thank you!

"Class 'Nav' not found".

Hey guys,

I've ran composer require devmarketer/easynav, added the provider and alias to config/app.php but it says Class "Nav" not found.

I'm using Laravel 5.4.36

urlContains() undefined

Hi Alex! There is an error in your package when try to use urlContains:
Call to undefined method DevMarketer\EasyNav\EasyNav::urlContains()
All another working fine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.