Git Product home page Git Product logo

taxonomy's People

Contributors

innoscience avatar markcameron avatar owenvoke avatar tannermccoleman avatar wdmtech avatar xdubois avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taxonomy's Issues

Taxonomy class to make use of interface models.

Who wants it? Can we have it?

Lets have a looser coupling of Taxonomy dependencies. From concrete models Devfactory\Taxonomy\Models\Vocabulary and Devfactory\Taxonomy\Models\Term to contract/interfaces/

Why want it? so App can add additional attributes to the models or additional behaviours.

Delete button not working for child terms

Hi is me again!

at terms index.blade

line: 134 should be
{!! Form::open(array('method' => 'DELETE', 'url' => action('\Devfactory\Taxonomy\Controllers\TermsController@deleteDestroy', $child->id))) !!}

currently child terms delete button is pointing to getEdit method which will fail. Thanks.

Error when visiting /admin/taxonomy

FatalErrorException in TaxonomyController.php line 17:
Class 'Devfactory\Taxonomy\Controllers\Controller' not found

Using Laravel 5.1
Taxonomy Branch 3.0

Please assist. thanks

Unique TermRelation Models and Tables

I'd really like to see the ability to easily add additional TermRelation models/tables, similar to how Eloquent Meta does things

I'm not sure how this could possibly be implemented with Term::termRelations(). Any thoughts?

getAllByTermId cater to multiple terms?

taxonomytrait only allow getting all entities in one term id

Is it possible to search for entities which contains multiple term id?? For both AND and OR operations?
(e.g cars with term id: 1 AND 23)
(e.g cars with term id: 13 OR 82)

Fatal error: Call to undefined method Illuminate\Foundation\Application::bindShared()

Laravel 5.2

after installing "devfactory/taxonomy": "3.0.*" and adding
'Devfactory\Taxonomy\TaxonomyServiceProvider', to providers in app.php

got

[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Call to undefined method Illuminate\Foundation\Application::bindShared()

because of vendor/devfactory/taxonomy/src/TaxonomyServiceProvider.php:53
$this->app->bindShared('taxonomy', function ($app) {...

change bindShared() to singleton() to fix

TaxonomyTrait@addTerm doesn't return a TermRelation object

Currently addTerm() returns null:

  /**
   * Add an existing term to the inheriting model
   *
   * @param $term_id int
   *  The ID of the term or an instance of the Term object
   *
   * @return object
   *  The TermRelation object
   */
  public function addTerm($term_id) {
    $term = ($term_id instanceof Term) ? $term_id : Term::findOrFail($term_id);

    $term_relation = [
      'term_id' => $term->id,
      'vocabulary_id' => $term->vocabulary_id,
    ];

    $this->related()->save(new TermRelation($term_relation));
  }

Will send a PR

Warning when performing composer install or composer update

Below are the warning displayed:

Warning: Ambiguous class resolution, "CreateVocabulariesTable" was found in both "$baseDir . '/database/migrations/2014_10_29_164909_create_vocabularies_table.php" and "/Users/admin/Development/laravel5-default/vendor/devfactory/taxonomy/src/migrations/2014_10_29_164909_create_vocabularies_table.php", the first will be used.
Warning: Ambiguous class resolution, "CreateTermsTable" was found in both "$baseDir . '/database/migrations/2014_10_29_164925_create_terms_table.php" and "/Users/admin/Development/laravel5-default/vendor/devfactory/taxonomy/src/migrations/2014_10_29_164925_create_terms_table.php", the first will be used.
Warning: Ambiguous class resolution, "CreateTermRelationsTable" was found in both "$baseDir . '/database/migrations/2014_10_29_164940_create_term_relations_table.php" and "/Users/admin/Development/laravel5-default/vendor/devfactory/taxonomy/src/migrations/2014_10_29_164940_create_term_relations_table.php", the first will be used.

Could be due to autoload issues.
Performance/Functionalities of the codes are not affected by this.
Using laravel 5.1 and 3.0 Branch.

Unnecessary dependencies?

Hey, I noticed that this uses Sentry and refers to a Helpers class and DispatchesCommands class (amongst others) that does not exist in Laravel 5.2. Are all these classes required?

Support for PHP 7

As far as I can tell, this package works in the PHP 7 Release Candidates.

However, the composer.json specifies the PHP requirement as ~5.4, meaning that it cannot be installed on a machine running PHP 7.

The composer.json should probably be updated to allow newer versions.

CRUD routes?

Hej! I'm a Laravel n00b so apologies if this is a stupid question.

It seems there are some Routes defined in the package, but they're not listen when I run php artisan route:list. Are they intended for public consumption and if so, how does one go about using them?!

Thanks!

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.