jarektkaczyk / eloquence

Extensions for the Eloquent ORM
http://softonsofa.com
MIT License
1.09k stars 142 forks source link

Can't install in project using Laravel 5.3-RC1 - please update to support 5.3 #108

Closed mstnorris closed 8 years ago

mstnorris commented 8 years ago

sofa/eloquence 5.2.x-dev requires illuminate/database 5.2.* -> satisfiable by illuminate/database[5.2.x-dev, blah blah blah]

Please update to allow installation into Laravel 5.3 projects.

jarektkaczyk commented 8 years ago

It's been already done and seems fine:

just did:

// composer
    "require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.3.*"
    },
    "require-dev": {
      ....
        "sofa/eloquence": "~5.3"
...
}

// tinker
>>> $cl = new class extends \Illuminate\Database\Eloquent\Model { use \Sofa\Eloquence\Eloquence, Sofa\Eloquence\Mappable; }
=> Illuminate\Database\Eloquent\Model@anonymous {#664}
>>> $model = new $cl
=> Illuminate\Database\Eloquent\Model@anonymous {#676}
>>> 
jarektkaczyk commented 8 years ago

it needs some tweaks for the ne wJoinClause however , so leaving it open

jarektkaczyk commented 8 years ago

done

https://travis-ci.org/jarektkaczyk/eloquence/builds/154930836