GithubHelp home page GithubHelp logo

Comments (7)

AlexanderPoellmann avatar AlexanderPoellmann commented on August 18, 2024

Just checked and works fine for me, seems to be some issue related to your project.

Try php artisan clear-compiled and then composer dump-autoload. If that doesn't help run composer update as well.

If it still doesn't do the trick please share the content of your composer.json.

from laravel-addresses.

lotharthesavior avatar lotharthesavior commented on August 18, 2024

Hi there, I just installed a fresh install of Laravel 8 and I got the same error. This is the composer.json content here:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5",
        "lecturize/laravel-addresses": "^1.0"
    },
    "require-dev": {
        "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"
    },
    "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"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

from laravel-addresses.

AlexanderPoellmann avatar AlexanderPoellmann commented on August 18, 2024

Well, then my best guess would be, that you are loading pgsql (PostgreSQL) twice in your php.ini or conf.d. I've just tested on a fresh install too and it works just fine for me. Let me know!

from laravel-addresses.

AlexanderPoellmann avatar AlexanderPoellmann commented on August 18, 2024

Hey @arslbbt and @lotharthesavior, could you verify whether the issue might be PostgreSQL related? I've been playing with some of our installs, and the package is working on all of them, but we aren't using PostgreSQL so I couldn't check that.

from laravel-addresses.

masteralb avatar masteralb commented on August 18, 2024

I confirm, php artisan vendor:publish --provider="Webpatser\Countries\CountriesServiceProvider" and php artisan countries:migration not working.

On the first run i get:

Unable to locate publishable resources.

On the second run, the output is:

There are no commands defined in the "countries" namespace.

Trying with "lecturize/laravel-addresses": "^1.0" on laravel "laravel/framework": "^8.12" (yup, clean install!)

from laravel-addresses.

masteralb avatar masteralb commented on August 18, 2024

Update:

This is relate to: webpatser/laravel-countries, you need to follow the installation as specified here (also mentioned in the package installation).

However, some manual actions are required to complete the installation:

  • First problem: $seeder_file = $this->laravel->path."/../database/seeds/CountriesSeeder.php"; -> you need to change it from "seeds" to "seeders" (look at: vendor/webpatser/laravel-countries/src/commands/MigrationCommand.php:123)

  • Second problem: Class 'Doctrine\DBAL\Driver\AbstractMySQLDriver' not found, in order to resolve it, you must install composer require doctrine/dbal

from laravel-addresses.

AlexanderPoellmann avatar AlexanderPoellmann commented on August 18, 2024

Thank you for looking into this, @masteralb.

from laravel-addresses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.