devmarketer / laraveleasynav Goto Github PK
View Code? Open in Web Editor NEWMaking managing navigation in Laravel easy.
License: MIT License
Making managing navigation in Laravel easy.
License: MIT License
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!
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.
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 ????
This would be like hasSegment()
but instead would check all segments. This would differ from urlDoesContain()
because it only matches full segments.
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.
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!
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
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
I have two URLs
http://127.0.0.1:8000/roles Nav::isResource('roles')
http://127.0.0.1:8000/roles-assignment Nav::isResource('roles-assignment')
But when I am on the roles-assignment URL the Nav::isResource('roles') also return active.
How to resolve this permanently?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.