drewjbartlett / wordpress-eloquent

A library that converts converts wordpress tables into Laravel Eloquent Models.
MIT License
148 stars 45 forks source link

installation failing #6

Open iteearmah opened 7 years ago

iteearmah commented 7 years ago

composer require drewjbartlett/wordpress-eloquent Using version ^0.2.1 for drewjbartlett/wordpress-eloquent ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

BackFront commented 6 years ago

@iteearmah , You need install Laravel framework in your environment. Try: Installing Laravel

or you need require laravel/framework

run the follow command in your composer directory

composer require laravel/framework

hottehead commented 6 years ago

Just had the same issue at another point. In your case laravel and wordpress-eloquent have conflicting dependencies regarding illuminate/database. Laravel wants it to be ^5.5 and wordpress-eloquent wants it to be 5.4 at most. You either downgrade laravel to (probably) 5.4 or this package needs to upgrade its requirements to 5.5 for illuminate/database. I just tried doing that in a fork but I didnt test it so far. See https://github.com/hottehead/wordpress-eloquent