tuandm / laravue-core

Laravel package to provide core functionalities of Laravue dashboard
https://laravue.dev
MIT License
150 stars 50 forks source link

Can't install Laravue-core in a bare Laravel project #10

Closed caraffa closed 5 years ago

caraffa commented 5 years ago

Hi. I'm trying to setup a dev environment for laravue in macOS 10.14. I've followed these steps: $ composer create-project laravel/laravel LaravueCoreTest 4.2.* $ cd LaravueCoreTest $ composer require tuandm/laravue-core

But I get this error

Using version ^0.3.4 for tuandm/laravue-core
./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
    - Installation request for tuandm/laravue-core ^0.3.4 -> satisfiable by tuandm/laravue-core[0.3.4].
    - tuandm/laravue-core 0.3.4 requires tymon/jwt-auth ^1.0 -> satisfiable by tymon/jwt-auth[1.0.0-alpha.2, 1.0.0-alpha.3, 1.0.0-alpha1, 1.0.0-beta.1, 1.0.0-beta.2, 1.0.0-beta.3, 1.0.0-rc.1, 1.0.0-rc.2, 1.0.0-rc.3, 1.0.0-rc.4, 1.0.0-rc.4.1, 1.0.0-rc.5, 1.0.x-dev] but these conflict with your requirements or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

This is the composer.json created by Laravel's cli

{
        "name": "laravel/laravel",
        "description": "The Laravel Framework.",
        "keywords": ["framework", "laravel"],
        "license": "MIT",
        "type": "project",
        "require": {
                "laravel/framework": "4.2.*"
        },
        "autoload": {
                "classmap": [
                        "app/commands",
                        "app/controllers",
                        "app/models",
                        "app/database/migrations",
                        "app/database/seeds",
                        "app/tests/TestCase.php"
                ]
        },
        "scripts": {
                "post-install-cmd": [
                        "php artisan clear-compiled",
                        "php artisan optimize"
                ],
                "post-update-cmd": [
                        "php artisan clear-compiled",
                        "php artisan optimize"
                ],
                "post-create-project-cmd": [
                        "php artisan key:generate"
                ]
        },
        "config": {
                "preferred-install": "dist"
        },
        "minimum-stability": "stable"
}

Thanks

caraffa commented 5 years ago

Sorry. I've installed the latest stable Laravel version (5.8) and it works.

tuandm commented 5 years ago

@caraffa We are going to update this package to work with latest Laravel, sorry for the late response.

caraffa commented 5 years ago

May be there's something I'm missing, but apparently (granted, I've not tested thoroughly) you package is working with a Laravel 5.8 project. My first attempt was with a Laravel 4.2.* project! And the Laravue install script failed. It succeeds with Laravel 5.8. I don't know with Laravel 6.0. Anyway, Im going on with my tests.

Thank you again