bartko-s / stefano-tree

Framework agnostic Nested Set (MPTT) implementation for PHP
https://bartko-s.github.io/stefano-tree
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Add Laravel support #10

Open bartko-s opened 6 years ago

bartko-s commented 6 years ago

Add Laravel query builder support

thgs commented 5 years ago

@bartko-s implementing AdapterInterface would be sufficient for this? I want to give it a try

bartko-s commented 5 years ago

Hi @thgs

thgs commented 5 years ago

Hi @bartko-s Yes, I saw the tests. I couldn't get it to pass any of them with just running phpunit. Is there something I am missing ?

bartko-s commented 5 years ago

You must set your db connection settings for Mysql and Postresql. This is template. Simply create copy of this file without ".dist" extensions. Then look on this composer file you will see composer scripts(commands). This composer command composer test run unit/functional tests for all combinations of supported database, db adapters. If you want you can run tests only for one environment. For example Mysql with Docrine DBAL with whis composer test-mysql-doctrine2