Latest

Tuesday, July 11, 2017

How to set up the ClosureTable component with Laravel 5.4

Asked by: Nimral


this component here ...

https://github.com/franzose/ClosureTable

looks very promising, I wanted to give it a try, but couldn't figure out how to install it. Some sparse instructions are given on the project page, but they seem both outdated and incomplete.

The composer.json part is clear, and upon

composer update

I got the packet downloaded to Laravel's vendor subdirectory.

Then the docs instruct to add to app/config/app.config

'providers' => array(
        // ...
        'Franzose\ClosureTable\ClosureTableServiceProvider',
    ),

I guess, this is outdated and very likely incomplete, there is a similar file in config/app.php, but it's internal structure looks completely different. Finally I found some posts about severe troubles installing custom packages because of problems with autoloading.

Would anyone pleas have a look at this package and give me instructions how I need to install it?

Thanks very much,

Armin.



Source

No comments:

Post a Comment

Adbox