craigpaul / laravel-postmark

A Postmark adapter for Laravel
MIT License
204 stars 23 forks source link

laravel 9 support #138

Closed hai-shift closed 2 years ago

hai-shift commented 2 years ago

i try to update to laravel 9 but i can׳t :(

craigpaul commented 2 years ago

Hey @hai-shift, can you provide more details and/or a reproduction of the issue(s) you're experiencing. Laravel 9 has been out for many months now and I've personally been using this library on a couple of different Laravel 9 apps (both upgraded to and new).

hai-shift commented 2 years ago

in my compoer: "coconutcraig/laravel-postmark": "^2.10",

Problem 1

craigpaul commented 2 years ago

Can you post your entire composer.json file?

hai-shift commented 2 years ago

{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.0", "actb/blade-github-octicons": "^4.0", "coconutcraig/laravel-postmark": "^2.10", "fideloper/proxy": "^4.4", "fidum/laravel-eloquent-morph-to-one": "^2.0", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "hisorange/browser-detect": "^4.4", "http-interop/http-factory-guzzle": "^1.2", "itsmalikjones/blade-iconic": "^1.1", "khatabwedaa/blade-css-icons": "^1.0", "kirschbaum-development/eloquent-power-joins": "^2.4", "laravel/framework": "^9.0", "laravel/scout": "^9.3", "laravel/tinker": "^2.5", "league/flysystem-aws-s3-v3": "~1.0", "livewire/livewire": "^2.3" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.5", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "pestphp/pest-plugin-laravel": "^1.2", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ignition": "^1.0" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", "@php artisan vendor:publish --force --tag=livewire:assets --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } }

hai-shift commented 2 years ago

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

craigpaul commented 2 years ago

Give something like this a try.

// Remove package temporarily
composer remove coconutcraig/laravel-postmark;

// Upgrade laravel/framework to ^9.0
composer update laravel/framework -W;

// Re-install package
composer require coconutcraig/laravel-postmark;

This isn't really an issue with this library, it's just a pain when upgrading Laravel in general (depending on the composer packages you have installed).