Giter Site home page Giter Site logo

Why does add use push? about laravel-menu HOT 4 CLOSED

lavary avatar lavary commented on August 17, 2024
Why does add use push?

from laravel-menu.

Comments (4)

lavary avatar lavary commented on August 17, 2024

Hey Dustin,
the API doc needs an update; Check this out: https://github.com/illuminate/support/blob/master/Collection.php

push() does exactly what you suggested:

<?php
    /**
* Push an item onto the end of the collection.
*
* @param mixed $value
* @return void
*/
public function push($value)
{
$this->items[] = $value;
}
?>

That's why I used it.

Good luck.

from laravel-menu.

dustingraham avatar dustingraham commented on August 17, 2024

Gotcha. The composer.json shows "illuminate/support": ">=4.0", which might need to change to 4.1 or 4.2. I'm on 4.0.* and so all my menu's render in reverse! :)

from laravel-menu.

lavary avatar lavary commented on August 17, 2024

Oh, forgot to update composer.json

Thanks! It's now updated :)

from laravel-menu.

dustingraham avatar dustingraham commented on August 17, 2024

Thanks. You know what this means now... I am working on upgrading from 4.0.* to 4.2.* and arg it's a long list!

Love the package, thanks for the fixes.

from laravel-menu.

Related Issues (20)

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.