Comments (7)
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.
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.
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.
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.
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.
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 installcomposer require doctrine/dbal
from laravel-addresses.
Thank you for looking into this, @masteralb.
from laravel-addresses.
Related Issues (20)
- Validations fail HOT 8
- Property "is_public" is not fillable HOT 1
- Custom attributes in the Address table HOT 2
- How to get models by address? HOT 1
- Command "optimize" is not defined. HOT 1
- How do I use the "HasContacts" part of this package? HOT 1
- "is_public" and "is_primary" not part of Contact Model protected $fillable
- Method deleteAddress is not working on php 7.2
- HasContacts::flushAddresses() bug (typo)
- $timestamp is always the same.
- Migrations are generated out of order HOT 1
- Contact HasCountry Trait
- Add support laravel 9
- New release for Laravel 9? HOT 3
- Address flags should fallback HOT 2
- the "properties" column in Address/Contact HOT 2
- Geolocation not being added automatically HOT 2
- updateAddress expects all address attributes
- Migration Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-addresses.