Giter Site home page Giter Site logo

Laravel 5.0 about breadcrumbs HOT 5 CLOSED

creitive avatar creitive commented on June 12, 2024
Laravel 5.0

from breadcrumbs.

Comments (5)

levacic avatar levacic commented on June 12, 2024

Hi!

Sorry for not replying sooner, holidays and all :)

The problem is due to the dependency "illuminate/support": "4.x" - and because Laravel 5 isn't stable yet, I'm not sure whether updating it is the only thing needed to support both 4 and 5, or whether we'll need separate branches for each.

If you know anything more, feel free to tell us, or send a PR - otherwise, we'll wait until L5 is officially released, in order to fix this.

Cheers!

from breadcrumbs.

sukonovs avatar sukonovs commented on June 12, 2024

Laravel is officially released. And I see pull request with update to this 5th version. Any chance you may review it? Update would be much appreciated, because I have some projects depended on this component.

from breadcrumbs.

levacic avatar levacic commented on June 12, 2024

Hey @sukonovs, I've just checked out the PR, and it has some problems, which I'll comment on in the PR itself.

However, I've given this some thought recently, and I'm not really sure at the moment whether it makes sense to have a package for both L4 and L5 at the same time - it seems a bit off to have a package check the framework version within its code, and execute code based on that. Additionally, I've never been completely satisfied that this is a Laravel-specific package, because the core class can certainly be used outside of Laravel (as described in the documentation).

I think a better idea might be to release a standalone breadcrumbs class as version 2.0.0 of this package, and then have separate packages such as creitive/laravel4-breadcrumbs and creitive/laravel5-breadcrumbs - which would basically be adapters for each of the framework versions. After that, someone using the package without Laravel could simply install creitive/breadcrumbs (without the illuminate/support cruft), and people using it within Laravel would install the appropriate "adapter" package instead.

What do you think about that approach?

I'll have to do some research on this though, because it might involve some potentially "dangerous" stuff, like changing this repository's URL, and I'm not sure if Packagist deals with that correctly.

from breadcrumbs.

sukonovs avatar sukonovs commented on June 12, 2024

I think spliting packages for each version makes sense. Many popular package devlopers are making new repos for l5.

from breadcrumbs.

levacic avatar levacic commented on June 12, 2024

@sukonovs Hi, sorry for the wait! We've released the new package that targets Laravel 5. The update process would be to remove the old package before installing the new one, ie.

composer remove creitive/breadcrumbs
composer require creitive/laravel5-breadcrumbs

Let me know if this works correctly for you.

I'll close this issue, as this package is now officially non-Laravel dependent, so if you have any problems with the Laravel 5 package, please open an issue in that repo.

Thanks!

from breadcrumbs.

Related Issues (10)

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.