php-tmdb / laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work with Laravel 5.

crazydc opened this issue · comments

Seems Laravel have upgraded the Illuminate/support to 5.0.13. I will try and create a new dev branch of this and test it with Laravel 5.

I managed to change how Laravel 5 loads the config.

Pull : #8

@crazydc could you possibly give me some feedback if this fixes it? If so I'll merge it in for now, I found a forum topic where @notflip posted and asked a community member @MarkRedeman to help out fix this package for you laravel users out there.

I couldn't figure out how I can use composer to install my own branch to test it correctly.

I was manually hacking it into my code and could not get it to play nice. The configuration part that @notflip mentions looks like it would work. I personally have not tested. I will copy code manually into my Dev branch and see if it gets it work.

Any hints on how I can use composer to install private branch would be great.

So you reference your own branch in the repositories[] part, then the original repository with the version of your branch ( dev-dev-laravel-5) in my case.

 {
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/notflip/tmdb-package"
        }
    ],
    "require": {
        "wtfzdotnet/tmdb-package": "dev-dev-laravel-5"
    }
}

And yes i thought you had to type the dev part yourself so now it's dev-dev :)

@crazydc Laravel 5 support has been added in the new version.