fumeapp / modeltyper

Generate TypeScript interfaces from Laravel Models
MIT License
135 stars 16 forks source link

Laravel 9 install issues #57

Open Josje92 opened 1 year ago

Josje92 commented 1 year ago

What happened?

I read that starting support is from Laravel version 9.21. I was on 8 so had to upgrade my project anyway, so I did. I'm currently at 9.52.7.

I can't get it to install. Might be a thirdparty package obviously, but it also says illuminate/database is required, which got replaced by Laravel itself in version 9 (line 69).

Any suggestions on how to proceed?

Expected Behavior

Installing the package.

Steps To Reproduce

  1. Create a Laravel project with these deps
"require": {
        "php": ">=8.1",
        "laravel/framework": "^9.0",
        "spatie/laravel-html": "^3.2.1",
        "h4cc/wkhtmltopdf-amd64": "0.12.x",
        "h4cc/wkhtmltoimage-amd64": "0.12.x",
        "barryvdh/laravel-snappy": "^1.0-dev",
        "madnest/madzipper": "^1.0.3",
        "aws/aws-sdk-php-laravel": "^3.1",
        "league/flysystem-aws-s3-v3": "^3.0",
        "ralouphie/mimey": "^1.0",
        "intervention/image": "^2.3",
        "laravel/tinker": "^2.0",
        "laravel/passport": "11.*.*",
        "neylsongularte/eloquent-extra-events": "^1.0",
        "picqer/exact-php-client": "^3.14",
        "fideloper/proxy": "^4.0",
        "doctrine/dbal": "^3.0.0",
        "filp/whoops": "~2.0",
        "ext-json": "*",
        "simplesoftwareio/simple-qrcode": "^2.0",
        "rap2hpoutre/fast-excel": "^5.2",
        "league/oauth2-client": "^2.4",
        "microsoft/microsoft-graph": "^1.13",
        "google/apiclient": "^2.0",
        "staudenmeir/laravel-adjacency-list": "^1.0",
        "ext-curl": "*",
        "staudenmeir/eloquent-has-many-deep": "^1.7",
        "fakerphp/faker": "^1.13",
        "laravel/ui": "^3.2",
        "laravel/helpers": "^1.4",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/sanctum": "^2.9",
        "ext-imagick": "*",
        "ext-gd": "*",
        "laravelcollective/html": "^6.4",
        "symfony/mailgun-mailer": "^6.2",
        "symfony/http-client": "^6.2"
    },
    "require-dev": {
        "mockery/mockery": "0.9.*",
        "symfony/css-selector": "3.1.*",
        "symfony/dom-crawler": "3.1.*",
        "laracasts/generators": "^2.0.2",
        "phpunit/phpunit": "^9.0"
    }
  1. Try to require this package
tcampbPPU commented 1 year ago

It should only be supported for Laravel 10 as of now, so let me adjust the Readme. We did support both at 1 point but the Laravel model show command dependacy was changed so we only the support the latest version now. You may give install a lower version like v2.0.0 a try, or try with Laravel 10 installed.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.