Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Crazylife's avatar

Encounter issue when install dingo/api package

I am having issue installing dingo/api package.

This is the problem show

 Problem 1
    - Root composer.json requires dingo/api ^0.10.0 -> satisfiable by dingo/api[v0.10.0].
    - dingo/api v0.10.0 requires illuminate/routing 5.1.* -> found illuminate/routing[v5.1.1, ..., 5.1.x-dev] but these were not loaded, likely because it conflicts with another require.

I am using laravel 8 and PHP 8 for now.

0 likes
2 replies
Crazylife's avatar

yes, this is my composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "brick/money": "^0.5.2",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.3",
        "laravel/breeze": "^1.1",
        "laravel/framework": "^8.12",
        "laravel/passport": "^10.1",
        "laravel/socialite": "^5.2",
        "laravel/tinker": "^2.6",
        "league/fractal": "^0.19.2",
        "phpfastcache/phpfastcache": "^8.0",
        "raiym/instagram-php-scraper": "^0.11.1",
        "spatie/laravel-permission": "^4.0",
        "wulfheart/pretty_routes": "^0.2.0",
        "ylsideas/feature-flags": "^1.4"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.5",
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3"
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/",
            "P1\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Please or to participate in this conversation.